]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
3416. [bug] Named could die on shutdown if running with 128 UDP
authorMark Andrews <marka@isc.org>
Tue, 13 Nov 2012 20:47:58 +0000 (07:47 +1100)
committerMark Andrews <marka@isc.org>
Tue, 13 Nov 2012 20:47:58 +0000 (07:47 +1100)
                        dispatches per interface. [RT #31743]

Squashed commit of the following:

commit 1a97c755f8496f65024af0f634c1acf59a0a4252
Author: Mark Andrews <marka@isc.org>
Date:   Wed Nov 7 07:14:36 2012 +1100

    add regression test for RT31743

commit 7b16b5f77fad39478168aac25742823f2fcd825b
Author: Mark Andrews <marka@isc.org>
Date:   Fri Nov 2 23:57:24 2012 +1100

    array bounds error when shutting down interface

CHANGES
bin/named/interfacemgr.c
bin/tests/system/resolver/ns7/named.args

diff --git a/CHANGES b/CHANGES
index 7a0dc97785651bb6a7714377d87e24db4f86ff0f..ce8ebbcaffaabf0968447e55a3aa6147824e1d04 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+3416.  [bug]           Named could die on shutdown if running with 128 UDP
+                       dispatches per interface. [RT #31743]
+
 3415.  [bug]           named could die with a REQUIRE failure if a valdation
                        was canceled. [RT #31804]
 
index d632ae92e7de89f4923dea823029ef45155a5baa..f8f8c4dd9ed38452f2b9c3e9dd10a9a0c1d940db 100644 (file)
@@ -426,7 +426,7 @@ ns_interface_destroy(ns_interface_t *ifp) {
 
        ns_interface_shutdown(ifp);
 
-       for (disp = ifp->nudpdispatch; disp >= 0; disp--)
+       for (disp = 0; disp < ifp->nudpdispatch; disp++)
                if (ifp->udpdispatch[disp] != NULL) {
                        dns_dispatch_changeattributes(ifp->udpdispatch[disp], 0,
                                                    DNS_DISPATCHATTR_NOLISTEN);
index e4eeccb54c9744754d274221bb83465d6376ee99..62217db5114a65cfc2a54da2a9c84a6fb5cc17b9 100644 (file)
@@ -1,2 +1,3 @@
 # this server runs named with the "-T clienttest" option omitted
--m record,size,mctx -c named.conf -d 99 -g
+# this server runs named with "-n 128 -U 128" as a regression test for RT31743
+-m record,size,mctx -c named.conf -d 99 -g -n 128 -U 128