aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-03-03 18:15:23 +0200
committerJouni Malinen <j@w1.fi>2012-03-03 18:15:23 +0200
commit5464bcbcffeabd33d9fc40d65ec5b1ef27864ec0 (patch)
treea05ecefdf9ee4ef71b3b500d184d938d96f5d8ec /src/utils
parent9779e122cda523c44c8d720f4a0034abe46cd2c5 (diff)
downloadexternal_wpa_supplicant_8_ti-5464bcbcffeabd33d9fc40d65ec5b1ef27864ec0.zip
external_wpa_supplicant_8_ti-5464bcbcffeabd33d9fc40d65ec5b1ef27864ec0.tar.gz
external_wpa_supplicant_8_ti-5464bcbcffeabd33d9fc40d65ec5b1ef27864ec0.tar.bz2
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>
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/pcsc_funcs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/pcsc_funcs.c b/src/utils/pcsc_funcs.c
index 26ee29b..5607adc 100644
--- a/src/utils/pcsc_funcs.c
+++ b/src/utils/pcsc_funcs.c
@@ -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;