From 670e1533775703e14450d3a0650fb75811377f08 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 11 May 2020 17:28:09 +0300 Subject: [PATCH] DPP2: Fix DPP_CHIRP listen parameter value validation Check the correct variable. Signed-off-by: Jouni Malinen --- wpa_supplicant/dpp_supplicant.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpa_supplicant/dpp_supplicant.c b/wpa_supplicant/dpp_supplicant.c index b8c1716ce..d3de39558 100644 --- a/wpa_supplicant/dpp_supplicant.c +++ b/wpa_supplicant/dpp_supplicant.c @@ -3362,7 +3362,7 @@ int wpas_dpp_chirp(struct wpa_supplicant *wpa_s, const char *cmd) pos = os_strstr(cmd, " listen="); if (pos) { listen_freq = atoi(pos + 8); - if (iter <= 0) + if (listen_freq <= 0) return -1; }