From: wessels <> Date: Thu, 2 Nov 2000 23:30:10 +0000 (+0000) Subject: DW: X-Git-Tag: SQUID_3_0_PRE1~1792 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=a616fedb71d7edcf2e47d1499b9eb4b8dfc5a3f5;p=thirdparty%2Fsquid.git DW: - avoid FPE in idnsCheckQueue() if name servers went away (nns = 0) because we're reconfiguring or shutting down. --- diff --git a/src/dns_internal.cc b/src/dns_internal.cc index d4aa92b478..b5fee99b22 100644 --- a/src/dns_internal.cc +++ b/src/dns_internal.cc @@ -1,6 +1,6 @@ /* - * $Id: dns_internal.cc,v 1.32 2000/07/22 17:56:55 wessels Exp $ + * $Id: dns_internal.cc,v 1.33 2000/11/02 16:30:10 wessels Exp $ * * DEBUG: section 78 DNS lookups; interacts with lib/rfc1035.c * AUTHOR: Duane Wessels @@ -390,6 +390,9 @@ idnsCheckQueue(void *unused) idns_query *q; event_queued = 0; for (n = lru_list.tail; n; n = p) { + if (0 == nns) + /* name servers went away; reconfiguring or shutting down */ + break; q = n->data; if (tvSubDsec(q->sent_t, current_time) < Config.Timeout.idns_retransmit * (1 << q->nsends % nns)) break;