]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix integer overflow for very high values of
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 15 Jun 2026 14:28:30 +0000 (16:28 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 15 Jun 2026 14:28:30 +0000 (16:28 +0200)
  `sock-queue-timeout`. Thanks to Qifan Zhang, Palo Alto
  Networks, for the report.

daemon/worker.c
doc/Changelog

index 8c695e1dc823e7a831fd80efc8f2d069aa45b755..84e0319d926f3ad247660b704bd61c3021120c62 100644 (file)
@@ -1511,7 +1511,7 @@ worker_handle_request(struct comm_point* c, void* arg, int error,
                if (worker->stats.max_query_time_us < wait_queue_time)
                        worker->stats.max_query_time_us = wait_queue_time;
                if(wait_queue_time >
-                       (long long)(worker->env.cfg->sock_queue_timeout * 1000000)) {
+                       (long long)worker->env.cfg->sock_queue_timeout * 1000000) {
                        /* count and drop queries that were sitting in the socket queue too long */
                        worker->stats.num_queries_timed_out++;
                        return 0;
index 0b67da8508e3282f53e69922b3a713dd60e94a33..d4985dcb3b64c5f5bc64640a1bbd93d3fd6192e1 100644 (file)
@@ -31,6 +31,9 @@
          query caused error information that was not cleared by
          a successful A subquery. Thanks to Qifan Zhang, Palo Alto
          Networks, for the report.
+       - Fix integer overflow for very high values of
+         `sock-queue-timeout`. Thanks to Qifan Zhang, Palo Alto
+         Networks, for the report.
 
 12 June 2026: Wouter
        - Fix that for auth-zone and rpz zones the allow-notify