]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DPP2: Do not try to proceed with GAS client if CSR building fails
authorJouni Malinen <jouni@codeaurora.org>
Thu, 18 Jun 2020 09:09:00 +0000 (12:09 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 18 Jun 2020 09:09:00 +0000 (12:09 +0300)
This error path was supposed to stop instead of continuing to
wpas_dpp_start_gas_client().

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

index 9c3776f1990db81258bede7a2c56d7d6751f8e20..7e2cdcd31eed60fcc37b84b4554deb675c11bfae 100644 (file)
@@ -1519,6 +1519,7 @@ static void wpas_dpp_build_csr(void *eloop_ctx, void *timeout_ctx)
        if (!auth->csr) {
                dpp_auth_deinit(wpa_s->dpp_auth);
                wpa_s->dpp_auth = NULL;
+               return;
        }
 
        wpas_dpp_start_gas_client(wpa_s);