From: Ondřej Surý Date: Fri, 6 Mar 2026 10:08:47 +0000 (+0100) Subject: Add parentheses to NM_BIG_BUF macro X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02e9edd51ff82ebd900a00031b75bc588f9e4d65;p=thirdparty%2Fbind9.git Add parentheses to NM_BIG_BUF macro The NM_BIG_BUF macro expands without parentheses, which can cause incorrect evaluation due to operator precedence when used in expressions. --- diff --git a/lib/isc/netmgr/netmgr-int.h b/lib/isc/netmgr/netmgr-int.h index 28aedd76541..bd4d6fbaecf 100644 --- a/lib/isc/netmgr/netmgr-int.h +++ b/lib/isc/netmgr/netmgr-int.h @@ -102,7 +102,7 @@ STATIC_ASSERT(ISC_NETMGR_TCP_RECVBUF_SIZE <= ISC_NETMGR_RECVBUF_SIZE, * most in TCPDNS or TLSDNS connections, so there's no risk of overrun * when using a buffer this size. */ -#define NM_BIG_BUF ISC_NETMGR_TCP_RECVBUF_SIZE * 2 +#define NM_BIG_BUF (ISC_NETMGR_TCP_RECVBUF_SIZE * 2) /*% * Maximum segment size (MSS) of TCP socket on which the server responds to