2163. [bug] If only one of query-source and query-source-v6

specified a port the query pools code broke (change
                        2129).  [RT #16768]
This commit is contained in:
Mark Andrews
2007-03-29 04:13:22 +00:00
parent 8cb6fd7cf8
commit 6dfc78fab6
2 changed files with 7 additions and 3 deletions
+4
View File
@@ -1,3 +1,7 @@
2163. [bug] If only one of query-source and query-source-v6
specified a port the query pools code broke (change
2129). [RT #16768]
2162. [func] Allow "rrset-order fixed" to be disabled at compile
time. [RT #16665]
+3 -3
View File
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: resolver.c,v 1.345 2007/03/06 00:38:57 marka Exp $ */
/* $Id: resolver.c,v 1.346 2007/03/29 04:13:22 marka Exp $ */
/*! \file */
@@ -1182,7 +1182,7 @@ fctx_query(fetchctx_t *fctx, dns_adbaddrinfo_t *addrinfo,
}
switch (isc_sockaddr_pf(&addrinfo->sockaddr)) {
case PF_INET:
if (res->ndisps > 0) {
if (res->dispatchv4pool != NULL) {
RES_LOCK(&res->poollock,
isc_rwlocktype_read);
dns_dispatch_attach(res->dispatchv4pool[did],
@@ -1195,7 +1195,7 @@ fctx_query(fetchctx_t *fctx, dns_adbaddrinfo_t *addrinfo,
}
break;
case PF_INET6:
if (res->ndisps > 0) {
if (res->dispatchv6pool != NULL) {
RES_LOCK(&res->poollock,
isc_rwlocktype_read);
dns_dispatch_attach(res->dispatchv6pool[did],