mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-29 08:14:02 -05:00
Debug print trailing WPA/RSN IE bytes, if any
This silences a never-used analyzer warning in addition to making the debug log entry somewhat more useful. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
a5802c0620
commit
749fa140ff
@ -558,8 +558,9 @@ int wpa_parse_wpa_ie_rsn(const u8 *rsn_ie, size_t rsn_ie_len,
|
|||||||
#endif /* CONFIG_IEEE80211W */
|
#endif /* CONFIG_IEEE80211W */
|
||||||
|
|
||||||
if (left > 0) {
|
if (left > 0) {
|
||||||
wpa_printf(MSG_DEBUG, "%s: ie has %u trailing bytes - ignored",
|
wpa_hexdump(MSG_DEBUG,
|
||||||
__func__, left);
|
"wpa_parse_wpa_ie_rsn: ignore trailing bytes",
|
||||||
|
pos, left);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
@ -696,8 +697,9 @@ int wpa_parse_wpa_ie_wpa(const u8 *wpa_ie, size_t wpa_ie_len,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (left > 0) {
|
if (left > 0) {
|
||||||
wpa_printf(MSG_DEBUG, "%s: ie has %u trailing bytes - ignored",
|
wpa_hexdump(MSG_DEBUG,
|
||||||
__func__, left);
|
"wpa_parse_wpa_ie_wpa: ignore trailing bytes",
|
||||||
|
pos, left);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user