mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/supplicant_memory_overflow' into 'master'
fix(esp_wifi): Prevent memory overflow in WPS See merge request espressif/esp-idf!33712
This commit is contained in:
commit
19162d8754
@ -1394,7 +1394,7 @@ void wifi_station_wps_eapol_start_handle(void *data, void *user_ctx)
|
||||
static int save_credentials_cb(void *ctx, const struct wps_credential *cred)
|
||||
{
|
||||
struct wps_credential *creds;
|
||||
if (!gWpsSm || !cred || gWpsSm->ap_cred_cnt > MAX_CRED_COUNT) {
|
||||
if (!gWpsSm || !cred || gWpsSm->ap_cred_cnt >= MAX_CRED_COUNT) {
|
||||
return ESP_FAIL;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user