diff --git a/CHANGES b/CHANGES index 8aebef8068..5c400fca0c 100644 --- 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] diff --git a/lib/dns/dispatch.c b/lib/dns/dispatch.c index cf58cf9319..cded156487 100644 --- a/lib/dns/dispatch.c +++ b/lib/dns/dispatch.c @@ -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 {