代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/systemd 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From f160a20a6bf995617cf8a22466638755f9a07813 Mon Sep 17 00:00:00 2001
From: Yu Watanabe <watanabe.yu+github@gmail.com>
Date: Fri, 24 Sep 2021 23:45:13 +0900
Subject: [PATCH] sd-dhcp6-client: make dhcp6_lease_free() accepts NULL
(cherry picked from commit 5cf67bb4072f149d0404398bfc359b068312ba28)
Conflict:NA
Reference:https://github.com/systemd/systemd/commit/f160a20a6bf995617cf8a22466638755f9a07813
---
src/libsystemd-network/sd-dhcp6-lease.c | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/src/libsystemd-network/sd-dhcp6-lease.c b/src/libsystemd-network/sd-dhcp6-lease.c
index 8378971422..4804f0941a 100644
--- a/src/libsystemd-network/sd-dhcp6-lease.c
+++ b/src/libsystemd-network/sd-dhcp6-lease.c
@@ -366,20 +366,18 @@ int sd_dhcp6_lease_get_fqdn(sd_dhcp6_lease *lease, const char **fqdn) {
}
static sd_dhcp6_lease *dhcp6_lease_free(sd_dhcp6_lease *lease) {
- assert(lease);
+ if (!lease)
+ return NULL;
free(lease->serverid);
dhcp6_lease_free_ia(&lease->ia);
dhcp6_lease_free_ia(&lease->pd);
-
free(lease->dns);
free(lease->fqdn);
-
- lease->domains = strv_free(lease->domains);
-
+ strv_free(lease->domains);
free(lease->ntp);
+ strv_free(lease->ntp_fqdn);
- lease->ntp_fqdn = strv_free(lease->ntp_fqdn);
return mfree(lease);
}
--
2.33.0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。