]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix pasn-init fuzz tester build
authorJouni Malinen <j@w1.fi>
Sat, 19 Nov 2022 15:21:45 +0000 (17:21 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 19 Nov 2022 15:21:45 +0000 (17:21 +0200)
Change of the wpas_pasn_start() prototype did not update the fuzzer
tool.

Fixes: 309765eb660d ("PASN: Use separate variables for BSSID and peer address")
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/fuzzing/pasn-init/pasn-init.c

index 680693e8f1149b14aef5e1a1c53043fad0efc767..b5c941aa726931ef130550f3318a49e0e77418f4 100644 (file)
@@ -40,7 +40,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
        pasn.send_mgmt = pasn_send_mgmt;
        hwaddr_aton("02:00:00:00:00:00", own_addr);
        hwaddr_aton("02:00:00:00:03:00", bssid);
-       if (wpas_pasn_start(&pasn, own_addr, bssid, WPA_KEY_MGMT_PASN,
+       if (wpas_pasn_start(&pasn, own_addr, bssid, bssid, WPA_KEY_MGMT_PASN,
                            WPA_CIPHER_CCMP, 19, 2412, NULL, 0, NULL, 0,
                            NULL) < 0) {
                wpa_printf(MSG_ERROR, "wpas_pasn_start failed");