network: add missing else in dhcp_lease_load

Fixes: 3fd6708cde (network: Serialize DNR servers)
This commit is contained in:
Ronan Pigott 2024-10-28 20:33:35 -07:00
parent f27ae592f7
commit f54f473b36
2 changed files with 2 additions and 1 deletions

View File

@ -1551,7 +1551,8 @@ int dhcp_lease_load(sd_dhcp_lease **ret, const char *lease_file) {
r = deserialize_dnr(&lease->dnr, dnr);
if (r < 0)
log_debug_errno(r, "Failed to deserialize DNR servers %s, ignoring: %m", dnr);
lease->n_dnr = r;
else
lease->n_dnr = r;
}
if (ntp) {

Binary file not shown.