From 1196b6a2e61075c029cb959f1e866af04e01fbe4 Mon Sep 17 00:00:00 2001 From: Ben Efros Date: Fri, 8 Apr 2022 15:31:09 -0700 Subject: Ensure dns_search_domain_unlink_marked removes all marked domains --- src/resolve/resolved-dns-search-domain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/resolve') 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) { -- cgit v1.2.3