[9.20] fix: usr: Fix DNS-over-HTTPS (DoH) quota configuration issue

The :any:`http-listener-clients` and :any:`http-streams-per-connection`
configuration options could be truncated to smaller values (or to ``0``,
which means unlimited) when very big configuration values were used, which
exceeded ``65535``. As a note - it is very unlikely that such big values
are used in production, and the default values for the affected options
are ``300`` and ``100``, correspondingly. This has been fixed.

Closes #6021

Backport of MR !12085

Merge branch 'backport-6021-doh-quota-type-truncation-fix-9.20' into 'bind-9.20'

See merge request isc-projects/bind9!12231
This commit is contained in:
Arаm Sаrgsyаn 2026-06-11 12:10:34 +00:00
commit 72d538fe26

View file

@ -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);