diff options
author | Mike Yuan <me@yhndnzj.com> | 2024-08-31 00:17:13 +0200 |
---|---|---|
committer | Mike Yuan <me@yhndnzj.com> | 2024-09-04 18:51:44 +0200 |
commit | ad501930d749e00f9686d29692b3142c36914f31 (patch) | |
tree | 4829cbd3be34943b0f7b027decd813d2787be8e7 /src/resolve/test-resolved-dummy-server.c | |
parent | machine-dbus: use in_same_namespace() at one more place (diff) | |
download | systemd-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.c | 2 |
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; |