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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user