加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-icmp6-drop-unnecessary-assertion.patch 1.04 KB
一键复制 编辑 原始数据 按行查看 历史
From aff2bf0465f677ba60e1cc701ae73968991e4a3f Mon Sep 17 00:00:00 2001
From: Yu Watanabe <watanabe.yu+github@gmail.com>
Date: Fri, 20 Aug 2021 08:44:27 +0900
Subject: [PATCH] icmp6: drop unnecessary assertion
Follow-up for 3691bcf3c5eebdcca5b4f1c51c745441c57a6cd1.
(cherry picked from commit 6da22a2fa592cc908d26c732b537d8b4fc004280)
Conflict:NA
Reference:https://github.com/systemd/systemd/commit/aff2bf0465f677ba60e1cc701ae73968991e4a3f
---
src/libsystemd-network/icmp6-util.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/libsystemd-network/icmp6-util.c b/src/libsystemd-network/icmp6-util.c
index 67c6b55d84..0b8c3e4cc3 100644
--- a/src/libsystemd-network/icmp6-util.c
+++ b/src/libsystemd-network/icmp6-util.c
@@ -186,7 +186,6 @@ int icmp6_receive(int fd, void *buffer, size_t size, struct in6_addr *ret_dst,
/* namelen == 0 only happens when running the test-suite over a socketpair */
- assert(!(msg.msg_flags & MSG_CTRUNC));
assert(!(msg.msg_flags & MSG_TRUNC));
CMSG_FOREACH(cmsg, &msg) {
--
2.33.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化