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: 0ee6885dae ("macsec: Store EAP-Key-Name as eapSessionId")
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
Jouni Malinen 2019-06-19 01:17:54 +03:00 committed by Jouni Malinen
parent ef60f0121f
commit 09448d94a7

View File

@ -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",