]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
2750. [bug] dig: assertion failure could occur when a server
authorEvan Hunt <each@isc.org>
Thu, 5 Nov 2009 01:57:49 +0000 (01:57 +0000)
committerEvan Hunt <each@isc.org>
Thu, 5 Nov 2009 01:57:49 +0000 (01:57 +0000)
didn't have an address. [RT #20579]

CHANGES
bin/dig/dighost.c

diff --git a/CHANGES b/CHANGES
index ba301734ab17fee7f5dac25ea2b15ab4a285db82..814b9f8cc1c8916a69e9408973a7f13a274c1496 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+2750.  [bug]           dig: assertion failure could occur when a server
+                       didn't have an address. [RT #20579]
+
 2749.  [bug]           ixfr-from-differences generated a non-minimal ixfr
                        for NSEC3 signed zones. [RT #20452]
 
index 7b81605304eff6ef4bc8ca05420fc6f333c434da..0673b99676fb8b742048880b08d89752518d7841 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: dighost.c,v 1.326 2009/09/15 23:48:09 tbox Exp $ */
+/* $Id: dighost.c,v 1.327 2009/11/05 01:57:49 each Exp $ */
 
 /*! \file
  *  \note
@@ -2581,13 +2581,15 @@ connect_timeout(isc_task_t *task, isc_event_t *event) {
                cq = query->lookup->current_query;
                if (!l->tcp_mode)
                        send_udp(ISC_LIST_NEXT(cq, link));
-               else {
+               else if (query->sock != NULL) {
                        isc_socket_cancel(query->sock, NULL,
                                          ISC_SOCKCANCEL_ALL);
                        isc_socket_detach(&query->sock);
                        sockcount--;
                        debug("sockcount=%d", sockcount);
                        send_tcp_connect(ISC_LIST_NEXT(cq, link));
+               } else {
+                       send_tcp_connect(ISC_LIST_NEXT(cq, link));
                }
                UNLOCK_LOOKUP;
                return;