From 2e0c83da1bbdc589579a14cc4e9fff40bd9896c1 Mon Sep 17 00:00:00 2001
From: Yu Watanabe <watanabe.yu+github@gmail.com>
Date: Sun, 10 Dec 2023 14:33:48 +0900
Subject: [PATCH] resolve: fix wrong error cause assignment to
 log_debug_errno()

Fixes #30392.

(cherry picked from commit fca212b0225e48097f3b6bd1f8c3a38bd9645040)
(cherry picked from commit b2a37030c1191ebd526781629986cd713330b234)
(cherry picked from commit 27dd6913d30ba09e371788fcea327e389ec122b0)
(cherry picked from commit a53032076cd7ee4c4ce6402b0f2701a6daafb4c3)

Conflict:NA
Reference:https://github.com/systemd/systemd/commit/fca212b0225e48097f3b6bd1f8c3a38bd9645040
---
 src/resolve/resolved-dns-stub.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/resolve/resolved-dns-stub.c b/src/resolve/resolved-dns-stub.c
index 22f20f31e9..11e24b8757 100644
--- a/src/resolve/resolved-dns-stub.c
+++ b/src/resolve/resolved-dns-stub.c
@@ -775,7 +775,7 @@ static void dns_stub_query_complete(DnsQuery *query) {
 
                         cname_result = dns_query_process_cname_one(q);
                         if (cname_result == -ELOOP) { /* CNAME loop, let's send what we already have */
-                                log_debug_errno(r, "Detected CNAME loop, returning what we already have.");
+                                log_debug("Detected CNAME loop, returning what we already have.");
                                 (void) dns_stub_send_reply(q, q->answer_rcode);
                                 break;
                         }
-- 
2.33.0

