mirror of
https://github.com/systemd/systemd.git
synced 2025-02-25 21:57:32 +03:00
networkd: small simplification
This commit is contained in:
parent
f2fd3cdb45
commit
09451975df
@ -673,16 +673,12 @@ int config_parse_domains(
|
||||
}
|
||||
}
|
||||
|
||||
if (is_route) {
|
||||
if (is_route)
|
||||
r = strv_extend(&n->route_domains, domain);
|
||||
if (r < 0)
|
||||
return log_oom();
|
||||
|
||||
} else {
|
||||
else
|
||||
r = strv_extend(&n->search_domains, domain);
|
||||
if (r < 0)
|
||||
return log_oom();
|
||||
}
|
||||
if (r < 0)
|
||||
return log_oom();
|
||||
}
|
||||
|
||||
strv_uniq(n->route_domains);
|
||||
|
Loading…
x
Reference in New Issue
Block a user