DPP: Fix confusing debug entry from Configurator

The logic for displaying the message about no configuration being
available for the Enrollee was reversed when support for multiple Config
Objects was added. This was supposed to be shown only if the first
Config Object fails (i.e., when no configuration is available); not when
second attempt fails (since the first one had already been successful in
that case).

Fixes: 7eb06a3369 ("DPP2: Allow multiple Config Objects to be build on Configurator")
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
Jouni Malinen 2019-10-11 13:04:42 +03:00 committed by Jouni Malinen
parent d905c8f7a7
commit 9c08bfbd91

View file

@ -5013,7 +5013,7 @@ dpp_build_conf_obj(struct dpp_authentication *auth, int ap, int idx)
else
conf = NULL;
if (!conf) {
if (idx != 0)
if (idx == 0)
wpa_printf(MSG_DEBUG,
"DPP: No configuration available for Enrollee(%s) - reject configuration request",
ap ? "ap" : "sta");