Merge branch 'bugfix/dpp_auth_ctx_validation_v5.5' into 'release/v5.5'

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

See merge request espressif/esp-idf!45106
This commit is contained in:
Jiang Jiang Jian
2026-01-15 16:31:50 +08:00
@@ -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;
}