if (!network->filename)
return log_oom();
+ network->dhcp_ntp = true;
network->dhcp_dns = true;
network->dhcp_hostname = true;
network->dhcp_domainname = true;
free(network->description);
+ while ((address = network->ntp)) {
+ LIST_REMOVE(addresses, network->ntp, address);
+ address_free(address);
+ }
+
while ((address = network->dns)) {
LIST_REMOVE(addresses, network->dns, address);
address_free(address);
link->network = network;
- if (network->dns) {
+ if (network->dns || network->ntp) {
r = link_save(link);
if (r < 0)
return r;