mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-18 10:54:03 -05:00
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:
parent
d905c8f7a7
commit
9c08bfbd91
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user