mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
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:
commit
2e387a71b0
@ -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)) {
|
||||
return ESP_ERR_ESP_NETIF_INVALID_PARAMS;
|
||||
}
|
||||
} else {
|
||||
return ESP_ERR_ESP_NETIF_INVALID_PARAMS;
|
||||
}
|
||||
|
||||
memcpy(opt_info, opt->val, opt->len);
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user