From 581dfcc413e338023009c1d44d790b378242d9d9 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Wed, 23 Dec 2020 14:09:52 +0200 Subject: [PATCH] tests: Fix p2p fuzzer build after API change Commit 7b121af26af5 ("P2P: Delay P2P scan when an external scan is in progress") added a new argument to p2p_scan_res_handled(), but did not update this test tool. Fix this by using hardcoded value 0 for the new delay argument. Signed-off-by: Jouni Malinen --- tests/fuzzing/p2p/p2p.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/fuzzing/p2p/p2p.c b/tests/fuzzing/p2p/p2p.c index 8ffcbbda6..fc83c3561 100644 --- a/tests/fuzzing/p2p/p2p.c +++ b/tests/fuzzing/p2p/p2p.c @@ -115,7 +115,7 @@ static void test_send(void *eloop_data, void *user_ctx) os_memset(&rx_time, 0, sizeof(rx_time)); p2p_scan_res_handler(ctx->p2p, (u8 *) "\x02\x00\x00\x00\x01\x00", 2412, &rx_time, 0, ctx->data, ctx->data_len); - p2p_scan_res_handled(ctx->p2p); + p2p_scan_res_handled(ctx->p2p, 0); p2p_probe_req_rx(ctx->p2p, (u8 *) "\x02\x00\x00\x00\x01\x00", (u8 *) "\x02\x00\x00\x00\x00\x00",