]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
PCSC: Debug print extra response data
authorJouni Malinen <j@w1.fi>
Sun, 29 Jun 2014 22:44:33 +0000 (01:44 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 2 Jul 2014 09:38:48 +0000 (12:38 +0300)
This shows any extra data from USIM response and also avoids a static
analyzer warning on dead increment.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/utils/pcsc_funcs.c

index ec06556342de2a97298335b5a0a09f9e2a553102..d955dc4e1bddc89f828b8e2161e0058f300699fa 100644 (file)
@@ -1406,6 +1406,12 @@ int scard_umts_auth(struct scard_data *scard, const unsigned char *_rand,
                pos += IK_LEN;
                wpa_hexdump(MSG_DEBUG, "SCARD: IK", ik, IK_LEN);
 
+               if (end > pos) {
+                       wpa_hexdump(MSG_DEBUG,
+                                   "SCARD: Ignore extra data in end",
+                                   pos, end - pos);
+               }
+
                return 0;
        }