From: Jouni Malinen Date: Sat, 3 Mar 2012 16:15:23 +0000 (+0200) Subject: SCARD: Increase application template DO buffer size X-Git-Tag: hostap_2_0~811 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5464bcbcffeabd33d9fc40d65ec5b1ef27864ec0;p=thirdparty%2Fhostap.git 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 --- diff --git a/src/utils/pcsc_funcs.c b/src/utils/pcsc_funcs.c index 26ee29b31..5607adc5b 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;