From: Jouni Malinen Date: Fri, 17 Dec 2010 06:22:07 +0000 (+0200) Subject: wlantest: Avoid aliasing a function parameter by renaming local variable X-Git-Tag: hostap-1-bp~692 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30e09b0d75660e55d47f755ba9db95e466c42a9d;p=thirdparty%2Fhostap.git wlantest: Avoid aliasing a function parameter by renaming local variable --- diff --git a/wlantest/rx_eapol.c b/wlantest/rx_eapol.c index 9d920e3a9..c7851b817 100644 --- a/wlantest/rx_eapol.c +++ b/wlantest/rx_eapol.c @@ -676,8 +676,8 @@ static void rx_data_eapol_key_1_of_2(struct wlantest *wt, const u8 *dst, if (sta->proto & WPA_PROTO_RSN) learn_kde_keys(bss, decrypted, decrypted_len, hdr->key_rsc); else { - int len = bss->group_cipher == WPA_CIPHER_TKIP ? 32 : 16; - if (decrypted_len == len) { + int klen = bss->group_cipher == WPA_CIPHER_TKIP ? 32 : 16; + if (decrypted_len == klen) { const u8 *rsc = hdr->key_rsc; int id; id = (key_info & WPA_KEY_INFO_KEY_INDEX_MASK) >>