mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-17 18:34:03 -05:00
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 <j@w1.fi>
This commit is contained in:
parent
5dbbf36916
commit
70bfc77161
@ -1406,6 +1406,12 @@ int scard_umts_auth(struct scard_data *scard, const unsigned char *_rand,
|
|||||||
pos += IK_LEN;
|
pos += IK_LEN;
|
||||||
wpa_hexdump(MSG_DEBUG, "SCARD: IK", ik, 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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user