]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolve: add reference of the original bus message to the aux queries
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 11 Feb 2022 00:43:16 +0000 (09:43 +0900)
committerLennart Poettering <lennart@poettering.net>
Fri, 18 Feb 2022 17:13:20 +0000 (18:13 +0100)
Otherwise, the error in aux queries cannot be replied.

Fixes #22477.

src/resolve/resolved-bus.c

index 5607dcc29f22733ab9c13e84573c52320707c86f..88c67e1c39a0e2ba872dc748e8fded8891b2d4d9 100644 (file)
@@ -1137,6 +1137,7 @@ static int resolve_service_hostname(DnsQuery *q, DnsResourceRecord *rr, int ifin
         if (r < 0)
                 return r;
 
+        aux->bus_request = sd_bus_message_ref(q->bus_request);
         aux->request_family = q->request_family;
         aux->complete = resolve_service_hostname_complete;