Skip to content

Commit

Permalink
Merge branch 'bugfix/wps_coverity_fwd_null' into 'master'
Browse files Browse the repository at this point in the history
wpa_supplicant: Bugfix wps coverity forward null pointer issue

See merge request espressif/esp-idf!21848
  • Loading branch information
Shreyas0-7 committed Jan 5, 2023
2 parents a4977e5 + d5c8850 commit 623d384
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/wpa_supplicant/esp_supplicant/src/esp_wps.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 623d384

Please sign in to comment.