]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
use correct port range
authorEvan Hunt <each@isc.org>
Wed, 26 Sep 2012 20:55:18 +0000 (13:55 -0700)
committerEvan Hunt <each@isc.org>
Wed, 26 Sep 2012 20:55:18 +0000 (13:55 -0700)
3382. [bug] SOA query from slave used use-v6-udp-ports range,
if set, regardless of the address family in use.
[RT #24173]

CHANGES
lib/dns/dispatch.c

diff --git a/CHANGES b/CHANGES
index b632438c1100fb545b709f8b6baa22b0f53eed89..431763c8b9e5532e3d15fc55d9b7eeaf480989a3 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,7 @@
+3382.  [bug]           SOA query from slave used use-v6-udp-ports range,
+                       if set, regardless of the address family in use.
+                       [RT #24173]
+
 3381.  [contrib]       Update queryperf to support more RR types.
                        [RT #30762]
 
index 6a2584780f4d0fc7073e9447c801eb5293d035cc..05403d5f9064bbe6815c6b2c5c6777d39bdda1f4 100644 (file)
@@ -2929,7 +2929,7 @@ get_udpsocket(dns_dispatchmgr_t *mgr, dns_dispatch_t *disp,
                 * If no port is specified, we first try to pick up a random
                 * port by ourselves.
                 */
-               if (isc_sockaddr_pf(&disp->local) == AF_INET) {
+               if (isc_sockaddr_pf(localaddr) == AF_INET) {
                        nports = disp->mgr->nv4ports;
                        ports = disp->mgr->v4ports;
                } else {