SCARD: Increase application template DO buffer size

This DO has a maximum length of 127 bytes (TS 102 221), so better use
large enough buffer when reading the record.

Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2012-03-03 18:15:23 +02:00
parent 9779e122cd
commit 5464bcbcff

View file

@ -397,7 +397,7 @@ static int scard_get_aid(struct scard_data *scard, unsigned char *aid,
unsigned char rid[5];
unsigned char appl_code[2]; /* 0x1002 for 3G USIM */
} *efdir;
unsigned char buf[100];
unsigned char buf[127];
size_t blen;
efdir = (struct efdir *) buf;