mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 10:47:19 +02:00
fix(dhcp server):dhcp server can not restore address pool
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user