From: Aram Sargsyan Date: Mon, 25 May 2026 12:11:30 +0000 (+0000) Subject: Fix DoH quota global variables type X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=281660ecc12a01f0b476e4c0e248b37a1e468ba2;p=thirdparty%2Fbind9.git 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. --- diff --git a/bin/named/include/named/globals.h b/bin/named/include/named/globals.h index 3df3ec038ac..50eb13e0437 100644 --- a/bin/named/include/named/globals.h +++ b/bin/named/include/named/globals.h @@ -72,8 +72,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);