]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix for #1324: Fix to free edns options scratch in ratelimit case.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 1 Sep 2025 07:28:29 +0000 (09:28 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 1 Sep 2025 07:28:29 +0000 (09:28 +0200)
daemon/worker.c
doc/Changelog

index 1cc094c36b44da07c25cd43fc88f4ad81ed49ab1..8e4a9b3d650a32d20079e3fbc7151d6583115003 100644 (file)
@@ -1707,6 +1707,7 @@ worker_handle_request(struct comm_point* c, void* arg, int error,
                        repinfo->client_addrlen, edns.cookie_valid,
                        c->buffer)) {
                        worker->stats.num_queries_ip_ratelimited++;
+                       regional_free_all(worker->scratchpad);
                        comm_point_drop_reply(repinfo);
                        return 0;
                }
index 214e69484d077d1dc5be59450b4ee254dbb04fe3..0ae9043038a2da5c43ffbddabae4b59d036f2d4e 100644 (file)
@@ -1,3 +1,6 @@
+1 September 2025: Wouter
+       - Fix for #1324: Fix to free edns options scratch in ratelimit case.
+
 29 August 2025: Yorgos
        - Limit the number of consecutive reads on an HTTP/2 session.
          Thanks to Gal Bar Nahum for exposing the possibility of infinite