From 280f99d60acbb6445a903ae8a4ccb8aa1a96ecc8 Mon Sep 17 00:00:00 2001 From: Michael Sawyer Date: Thu, 27 Jul 2000 18:36:59 +0000 Subject: [PATCH] Fix assertion when sockets died before tcp_length_done. --- bin/dig/dighost.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/dig/dighost.c b/bin/dig/dighost.c index fd91dddc9d..46d1bd843b 100644 --- a/bin/dig/dighost.c +++ b/bin/dig/dighost.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: dighost.c,v 1.100 2000/07/27 09:36:28 tale Exp $ */ +/* $Id: dighost.c,v 1.101 2000/07/27 18:36:59 mws Exp $ */ /* * Notice to programmers: Do not use this code as an example of how to @@ -1554,13 +1554,14 @@ tcp_length_done(isc_task_t *task, isc_event_t *event) { printf("%.*s: %s\n", (int)r.length, r.base, isc_result_totext(sevent->result)); isc_buffer_free(&b); - query->working = ISC_FALSE; + l = query->lookup; isc_socket_detach(&query->sock); sockcount--; debug("sockcount=%d",sockcount); INSIST(sockcount >= 0); isc_event_free(&event); - check_next_lookup(query->lookup); + clear_query(query); + check_next_lookup(l); UNLOCK_LOOKUP; return; }