From 5464bcbcffeabd33d9fc40d65ec5b1ef27864ec0 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 3 Mar 2012 18:15:23 +0200 Subject: [PATCH] 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 --- src/utils/pcsc_funcs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;