Merge branch 'bugfix/fix_dhcp_server_can_not_restore_address_pool_issue_5.0' into 'release/v5.0'

fix(dhcp server):dhcp server can not restore address pool 5.0

See merge request espressif/esp-idf!27692
This commit is contained in:
Jiang Jiang Jian 2023-12-06 16:57:35 +08:00
commit 2e387a71b0

View File

@ -2225,10 +2225,7 @@ esp_err_t esp_netif_dhcps_option_api(esp_netif_api_msg_t *msg)
if ((end_ip - start_ip + 1 > DHCPS_MAX_LEASE) || (start_ip >= end_ip)) { if ((end_ip - start_ip + 1 > DHCPS_MAX_LEASE) || (start_ip >= end_ip)) {
return ESP_ERR_ESP_NETIF_INVALID_PARAMS; return ESP_ERR_ESP_NETIF_INVALID_PARAMS;
} }
} else {
return ESP_ERR_ESP_NETIF_INVALID_PARAMS;
} }
memcpy(opt_info, opt->val, opt->len); memcpy(opt_info, opt->val, opt->len);
break; break;
} }