use correct port range

3382.	[bug]		SOA query from slave used use-v6-udp-ports range,
			if set, regardless of the address family in use.
			[RT #24173]
This commit is contained in:
Evan Hunt
2012-09-26 13:55:59 -07:00
parent 4cc08cff96
commit b01ff9d7f1
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -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]
+1 -1
View File
@@ -2792,7 +2792,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 {