Browse Source

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>
Jouni Malinen 13 years ago
parent
commit
5464bcbcff
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/utils/pcsc_funcs.c

+ 1 - 1
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;