1 Star 0 Fork 101

YukariChiba/systemd

forked from src-openEuler/systemd 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-resolve-add-reference-of-the-original-bus-message-to.patch 1.12 KB
一键复制 编辑 原始数据 按行查看 历史
From 965e8b5a691d05b32ecadbe1d4d00de2200492c2 Mon Sep 17 00:00:00 2001
From: Yu Watanabe <watanabe.yu+github@gmail.com>
Date: Fri, 11 Feb 2022 09:43:16 +0900
Subject: [PATCH] resolve: add reference of the original bus message to the aux
queries
Otherwise, the error in aux queries cannot be replied.
Fixes #22477.
(cherry picked from commit 08275791d85a1852e79951212f6cbbc727db789a)
(cherry picked from commit 919d398668d2baa1873e61f7f502fac910a9d606)
Conflict:NA
Reference:https://github.com/systemd/systemd/commit/965e8b5a691d05b32ecadbe1d4d00de2200492c2
---
src/resolve/resolved-bus.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/resolve/resolved-bus.c b/src/resolve/resolved-bus.c
index ed06895ed9..61d4b50c5b 100644
--- a/src/resolve/resolved-bus.c
+++ b/src/resolve/resolved-bus.c
@@ -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;
--
2.33.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/YukariChiba/systemd.git
git@gitee.com:YukariChiba/systemd.git
YukariChiba
systemd
systemd
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385