From 1de9d6ec668001755811f5f1332ce3ad69865e0c Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Thu, 3 Jul 2025 15:57:49 +0200 Subject: [PATCH] - Fix layout of comm_point_udp_ancil_callback. --- doc/Changelog | 1 + util/netevent.c | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/Changelog b/doc/Changelog index 425f36f7f..79e82e144 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,6 +1,7 @@ 3 July 2025: Wouter - Fix #1300: Is 'sock-queue-timeout' a linux only feature. - For #1300: implement sock-queue-timeout for FreeBSD as well. + - Fix layout of comm_point_udp_ancil_callback. 2 July 2025: Wouter - Merge #1299: Fix typos. diff --git a/util/netevent.c b/util/netevent.c index 2d2a54420..8d6445abf 100644 --- a/util/netevent.c +++ b/util/netevent.c @@ -1087,8 +1087,7 @@ comm_point_udp_ancil_callback(int fd, short event, void* arg) } else if( cmsg->cmsg_level == SOL_SOCKET && cmsg->cmsg_type == SCM_TIMESTAMP) { /* FreeBSD and also Linux. */ - memmove(&rep.c->recv_tv, CMSG_DATA(cmsg), sizeof -(struct timeval)); + memmove(&rep.c->recv_tv, CMSG_DATA(cmsg), sizeof(struct timeval)); #endif /* HAVE_LINUX_NET_TSTAMP_H */ } } -- 2.47.3