]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix DoH quota global variables type
authorAram Sargsyan <aram@isc.org>
Mon, 25 May 2026 12:11:30 +0000 (12:11 +0000)
committerArаm Sаrgsyаn <aram@isc.org>
Thu, 11 Jun 2026 11:32:26 +0000 (11:32 +0000)
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.

bin/named/include/named/globals.h

index 3df3ec038acdc55dfc1c9ebf4087fd13ab5f711e..50eb13e04373c180ceb7048e9ecbe1827f721110 100644 (file)
@@ -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);