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:
parent
ef60f0121f
commit
09448d94a7
1 changed files with 1 additions and 1 deletions
|
@ -1426,7 +1426,7 @@ static void ieee802_1x_get_keys(struct hostapd_data *hapd,
|
|||
shared_secret_len);
|
||||
|
||||
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",
|
||||
keys->send, keys->send_len);
|
||||
wpa_hexdump_key(MSG_DEBUG, "MS-MPPE-Recv-Key",
|
||||
|
|
Loading…
Reference in a new issue