Merge branch 'bugfix/dpp_auth_ctx_validation_v6.0' into 'release/v6.0'

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

See merge request espressif/esp-idf!45105
This commit is contained in:
Jiang Jiang Jian
2026-02-01 10:58:08 +08:00
@@ -241,7 +241,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;
}