diff options
Diffstat (limited to 'src/network/networkd-network.c')
-rw-r--r-- | src/network/networkd-network.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/network/networkd-network.c b/src/network/networkd-network.c index 62dc6a0bf..16a48a8a6 100644 --- a/src/network/networkd-network.c +++ b/src/network/networkd-network.c @@ -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); |