diff options
author | 2018-12-04 15:34:37 +0100 | |
---|---|---|
committer | 2018-12-21 12:10:07 +0100 | |
commit | 09451975df30663e803826e1634a6b8b54b6dae2 (patch) | |
tree | 90a756d341b87f03923da458eff3dd9439b81ee2 | |
parent | resolvectl: add support for reading/writing per-link 'default-route' boolean (diff) | |
download | systemd-09451975df30663e803826e1634a6b8b54b6dae2.tar.gz systemd-09451975df30663e803826e1634a6b8b54b6dae2.tar.bz2 systemd-09451975df30663e803826e1634a6b8b54b6dae2.zip |
networkd: small simplification
-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); |