From: Mantas Mikulėnas Date: Thu, 25 Sep 2025 19:52:18 +0000 (+0300) Subject: resolve: undo change to return code of next_search_domain() (#39119) X-Git-Tag: v259-rc1~440 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6cae201ca1b0bf4a136bdf1002b4bc7983f0ceee;p=thirdparty%2Fsystemd.git resolve: undo change to return code of next_search_domain() (#39119) This caused resolved to only consider the 1st search domain of every interface and ignore the rest. Fixes a regression caused by 81ae2237c1792943a1ec712ae2e630bcc592175b (v258). Fixes #39118. --- diff --git a/src/resolve/resolved-dns-query.c b/src/resolve/resolved-dns-query.c index 8ad7bff398d..4e11ad87bf5 100644 --- a/src/resolve/resolved-dns-query.c +++ b/src/resolve/resolved-dns-query.c @@ -147,7 +147,7 @@ static int dns_query_candidate_next_search_domain(DnsQueryCandidate *c) { dns_search_domain_unref(c->search_domain); c->search_domain = dns_search_domain_ref(next); - return 0; + return 1; } static int dns_query_candidate_add_transaction(