fix(esp_wifi): Validate dpp auth instance before using it

This commit is contained in:
Kapil Gupta
2025-11-03 12:20:01 +08:00
committed by Shreyas Sheth
parent 5cdf6f448f
commit 5059f574d0
@@ -264,7 +264,7 @@ static void gas_query_timeout(void *eloop_data, void *user_ctx)
{
struct dpp_authentication *auth = user_ctx;
if (!auth || !auth->auth_success) {
if (!s_dpp_ctx.dpp_auth || !s_dpp_ctx.dpp_auth.auth_success || (s_dpp_ctx.dpp_auth != auth)) {
wpa_printf(MSG_INFO, "DPP-GAS: Auth %p state not correct", auth);
return;
}