From bcb97dbff82c43ed8c5fb539009202f2616b556f Mon Sep 17 00:00:00 2001 From: Michael Sawyer Date: Wed, 31 May 2000 23:51:14 +0000 Subject: [PATCH] Fix bug in AXFR processing when multiple servers can potentially answer. --- bin/dig/dighost.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/dig/dighost.c b/bin/dig/dighost.c index 974b61e532..d898ed42e2 100644 --- a/bin/dig/dighost.c +++ b/bin/dig/dighost.c @@ -1432,6 +1432,13 @@ recv_done(isc_task_t *task, isc_event_t *event) { debug("Still pending."); #endif if (query->lookup->doing_xfr) { + if (query != query->lookup->xfr_q) { + dns_message_destroy (&msg); + isc_event_free (&event); + query->working = ISC_FALSE; + query->waiting_connect = ISC_FALSE; + return; + } if (!query->first_soa_rcvd) { debug("Not yet got first SOA"); if (!msg_contains_soa(msg, query)) {