mirror of
https://github.com/espressif/esp-idf.git
synced 2024-09-21 06:56:11 -04:00
fix(dhcp server):dhcp server can not restore address pool
This commit is contained in:
parent
c69f3aec91
commit
97b9c24c62
@ -2280,10 +2280,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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user