From: Jouni Malinen Date: Sun, 29 Jun 2014 22:44:33 +0000 (+0300) Subject: PCSC: Debug print extra response data X-Git-Tag: hostap_2_3~190 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70bfc77161e496357ae60f3e260121ad6ae0821e;p=thirdparty%2Fhostap.git PCSC: Debug print extra response data This shows any extra data from USIM response and also avoids a static analyzer warning on dead increment. Signed-off-by: Jouni Malinen --- diff --git a/src/utils/pcsc_funcs.c b/src/utils/pcsc_funcs.c index ec0655634..d955dc4e1 100644 --- a/src/utils/pcsc_funcs.c +++ b/src/utils/pcsc_funcs.c @@ -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; }