]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wlantest: Fix BIP replay detection
authorJouni Malinen <jouni.malinen@atheros.com>
Wed, 10 Nov 2010 14:59:45 +0000 (16:59 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 10 Nov 2010 14:59:45 +0000 (16:59 +0200)
wlantest/rx_mgmt.c

index 19d478eafa80f3e59ee895782ceead5a4f7cbc43..039d85d45aae3f2047a4eb3a6724563ccd86a54f 100644 (file)
@@ -509,7 +509,7 @@ static int check_bip(struct wlantest *wt, const u8 *data, size_t len)
                return 0;
        }
 
-       if (os_memcmp(mmie + 2, bss->ipn[keyid], 6) >= 0) {
+       if (os_memcmp(mmie + 2, bss->ipn[keyid], 6) <= 0) {
                wpa_printf(MSG_INFO, "BIP replay detected: SA=" MACSTR,
                           MAC2STR(mgmt->sa));
                wpa_hexdump(MSG_INFO, "RX IPN", mmie + 2, 6);