]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wlantest: Avoid aliasing a function parameter by renaming local variable
authorJouni Malinen <j@w1.fi>
Fri, 17 Dec 2010 06:22:07 +0000 (08:22 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 17 Dec 2010 06:22:07 +0000 (08:22 +0200)
wlantest/rx_eapol.c

index 9d920e3a92e478e6d63092e37982e1b9327d03c8..c7851b81724da74301c2cdd79f68339a030ece26 100644 (file)
@@ -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) >>