DPP2: Fix DPP_CHIRP listen parameter value validation

Check the correct variable.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
Jouni Malinen 2020-05-11 17:28:09 +03:00 committed by Jouni Malinen
parent 217656d098
commit 670e153377

View file

@ -3362,7 +3362,7 @@ int wpas_dpp_chirp(struct wpa_supplicant *wpa_s, const char *cmd)
pos = os_strstr(cmd, " listen="); pos = os_strstr(cmd, " listen=");
if (pos) { if (pos) {
listen_freq = atoi(pos + 8); listen_freq = atoi(pos + 8);
if (iter <= 0) if (listen_freq <= 0)
return -1; return -1;
} }