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

This commit is contained in:
xueyunfei 2023-12-05 15:56:20 +08:00 committed by BOT
parent c69f3aec91
commit 97b9c24c62

View File

@ -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)) {
return ESP_ERR_ESP_NETIF_INVALID_PARAMS;
}
} else {
return ESP_ERR_ESP_NETIF_INVALID_PARAMS;
}
memcpy(opt_info, opt->val, opt->len);
break;
}