Merge branch 'bugfix/wps_coverity_fwd_null' into 'master'

wpa_supplicant: Bugfix wps coverity forward null pointer issue

See merge request espressif/esp-idf!21848
This commit is contained in:
Shreyas Sheth 2023-01-05 14:31:46 +08:00
commit 623d384778

View File

@ -624,7 +624,7 @@ int wps_process_wps_mX_req(u8 *ubuf, int len, enum wps_process_res *res)
wps_enrollee_process_msg(sm->wps, expd->opcode, wps_buf);
}
if (*res == WPS_FAILURE) {
if (res && *res == WPS_FAILURE) {
sm->state = WPA_FAIL;
}