]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DPP2: Make sure dpp_auth gets cleared with external config processing
authorJouni Malinen <jouni@codeaurora.org>
Fri, 26 Jun 2020 17:50:23 +0000 (20:50 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 26 Jun 2020 17:50:23 +0000 (20:50 +0300)
wpa_s->dpp_auth did not get cleaner if dpp_config_processing=1 is used.
Clear this after having received TX status for Configuration Result to
avoid leaving behind the completed provisioning instance.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
wpa_supplicant/dpp_supplicant.c

index 8fd0d063b659282b1da888e590f247141d15ea06..edbe46f27e0290f83530a39b1c2c45245a10a33d 100644 (file)
@@ -1625,6 +1625,8 @@ fail:
                wpabuf_free(msg);
 
                /* This exchange will be terminated in the TX status handler */
+               if (wpa_s->conf->dpp_config_processing < 2)
+                       auth->remove_on_tx_status = 1;
                return;
        }
 fail2: