mirror of
https://github.com/systemd/systemd.git
synced 2024-11-23 02:03:37 +08:00
network: add missing else in dhcp_lease_load
Fixes: 3fd6708cde
(network: Serialize DNR servers)
This commit is contained in:
parent
f27ae592f7
commit
f54f473b36
@ -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) {
|
||||
|
BIN
test/fuzz/fuzz-dhcp-client/dnr_invalid
Normal file
BIN
test/fuzz/fuzz-dhcp-client/dnr_invalid
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user