]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
SCARD: Increase application template DO buffer size
authorJouni Malinen <j@w1.fi>
Sat, 3 Mar 2012 16:15:23 +0000 (18:15 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 3 Mar 2012 16:15:23 +0000 (18:15 +0200)
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>

src/utils/pcsc_funcs.c

index 26ee29b3154cb675ec0c2a3ca17d0d44ca5b8cbb..5607adc5b51512255dfb95151616be3f97655746 100644 (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;