summaryrefslogtreecommitdiffstats
path: root/src/resolve/test-resolved-dummy-server.c
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2024-08-31 00:17:13 +0200
committerMike Yuan <me@yhndnzj.com>2024-09-04 18:51:44 +0200
commitad501930d749e00f9686d29692b3142c36914f31 (patch)
tree4829cbd3be34943b0f7b027decd813d2787be8e7 /src/resolve/test-resolved-dummy-server.c
parentmachine-dbus: use in_same_namespace() at one more place (diff)
downloadsystemd-ad501930d749e00f9686d29692b3142c36914f31.tar.xz
systemd-ad501930d749e00f9686d29692b3142c36914f31.zip
socket-util: make recvmsg_safe() handle MSG_TRUNC too
Also, unify MSG_TRUNC handling all across the codebase.
Diffstat (limited to 'src/resolve/test-resolved-dummy-server.c')
-rw-r--r--src/resolve/test-resolved-dummy-server.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/resolve/test-resolved-dummy-server.c b/src/resolve/test-resolved-dummy-server.c
index 58257d7832..a47fafa2a6 100644
--- a/src/resolve/test-resolved-dummy-server.c
+++ b/src/resolve/test-resolved-dummy-server.c
@@ -53,8 +53,6 @@ static int server_recv(int fd, DnsPacket **ret) {
if (l <= 0)
return l;
- assert(!(mh.msg_flags & MSG_TRUNC));
-
p->size = (size_t) l;
p->family = sa.sa.sa_family;