mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-17 17:43:06 -05:00
Avoid use of a shadowed local variable
The same len variable can be used for both needs within ieee802_1x_get_keys() to avoid compiler warning about use of shadowed variable. Fixes: 0ee6885dae04 ("macsec: Store EAP-Key-Name as eapSessionId") Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
ef60f0121f
commit
09448d94a7
@ -1426,7 +1426,7 @@ static void ieee802_1x_get_keys(struct hostapd_data *hapd,
|
|||||||
shared_secret_len);
|
shared_secret_len);
|
||||||
|
|
||||||
if (keys && keys->send && keys->recv) {
|
if (keys && keys->send && keys->recv) {
|
||||||
size_t len = keys->send_len + keys->recv_len;
|
len = keys->send_len + keys->recv_len;
|
||||||
wpa_hexdump_key(MSG_DEBUG, "MS-MPPE-Send-Key",
|
wpa_hexdump_key(MSG_DEBUG, "MS-MPPE-Send-Key",
|
||||||
keys->send, keys->send_len);
|
keys->send, keys->send_len);
|
||||||
wpa_hexdump_key(MSG_DEBUG, "MS-MPPE-Recv-Key",
|
wpa_hexdump_key(MSG_DEBUG, "MS-MPPE-Recv-Key",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user