From cdceadf3f105d0db3653a4bc6b96f5b7fc51f26c Mon Sep 17 00:00:00 2001 From: Aram Sargsyan Date: Mon, 25 May 2026 12:11:30 +0000 Subject: [PATCH] Fix DoH quota global variables type The 'named_g_http_listener_clients' and 'named_g_http_streams_per_conn' global variables are defined as 'in_port_t', which is usually 16 bits, but both the readers and the writers of those variables use 'uint32_t' as the target/source, which can result in truncation. Use correct types. (cherry picked from commit 281660ecc12a01f0b476e4c0e248b37a1e468ba2) --- bin/named/include/named/globals.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/named/include/named/globals.h b/bin/named/include/named/globals.h index 25d03fff60..cae370e3a4 100644 --- a/bin/named/include/named/globals.h +++ b/bin/named/include/named/globals.h @@ -78,8 +78,8 @@ EXTERN in_port_t named_g_tlsport INIT(0); EXTERN in_port_t named_g_httpsport INIT(0); EXTERN in_port_t named_g_httpport INIT(0); -EXTERN in_port_t named_g_http_listener_clients INIT(0); -EXTERN in_port_t named_g_http_streams_per_conn INIT(0); +EXTERN uint32_t named_g_http_listener_clients INIT(0); +EXTERN uint32_t named_g_http_streams_per_conn INIT(0); EXTERN named_server_t *named_g_server INIT(NULL);