DPP2: Do not try to proceed with GAS client if CSR building fails

This error path was supposed to stop instead of continuing to
wpas_dpp_start_gas_client().

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
Jouni Malinen 2020-06-18 12:09:00 +03:00 committed by Jouni Malinen
parent ffc8ae507e
commit 697fa0c4bd

View 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);