summaryrefslogtreecommitdiffstats
path: root/src/resolve/resolved-dns-search-domain.c
diff options
context:
space:
mode:
authorBen Efros <befros@gmail.com>2022-04-09 00:31:09 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-04-10 14:20:56 +0200
commit1196b6a2e61075c029cb959f1e866af04e01fbe4 (patch)
tree9a0d88fd7da972199d787c022f3fa25c2460dc36 /src/resolve/resolved-dns-search-domain.c
parenttest: always invoke systemd-repart with --no-pager (diff)
downloadsystemd-1196b6a2e61075c029cb959f1e866af04e01fbe4.tar.xz
systemd-1196b6a2e61075c029cb959f1e866af04e01fbe4.zip
Ensure dns_search_domain_unlink_marked removes all marked domains
Diffstat (limited to '')
-rw-r--r--src/resolve/resolved-dns-search-domain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve/resolved-dns-search-domain.c b/src/resolve/resolved-dns-search-domain.c
index 0cc50d6478..bcbb2754d7 100644
--- a/src/resolve/resolved-dns-search-domain.c
+++ b/src/resolve/resolved-dns-search-domain.c
@@ -166,7 +166,7 @@ bool dns_search_domain_unlink_marked(DnsSearchDomain *first) {
} else
changed = false;
- return changed || dns_search_domain_unlink_marked(next);
+ return dns_search_domain_unlink_marked(next) || changed;
}
void dns_search_domain_mark_all(DnsSearchDomain *first) {