]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolve: undo change to return code of next_search_domain() (#39119)
authorMantas Mikulėnas <grawity@gmail.com>
Thu, 25 Sep 2025 19:52:18 +0000 (22:52 +0300)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 10 Oct 2025 08:36:47 +0000 (10:36 +0200)
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.

(cherry picked from commit 6cae201ca1b0bf4a136bdf1002b4bc7983f0ceee)

src/resolve/resolved-dns-query.c

index 8ad7bff398d85de8c527ca56f61fdfa56e67c372..4e11ad87bf5454d78de333824ce20602aad5d089 100644 (file)
@@ -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(