]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Don't queue something to a dnsserver if it is DNS_FLAG_CLOSING.
authorwessels <>
Tue, 28 Oct 1997 05:49:26 +0000 (05:49 +0000)
committerwessels <>
Tue, 28 Oct 1997 05:49:26 +0000 (05:49 +0000)
src/dns.cc

index 8d625e530ab2e0899b30fa15cce7491643233754..d283bff7613617408b62d230e684ce185af53b1c 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: dns.cc,v 1.43 1997/10/25 17:22:39 wessels Exp $
+ * $Id: dns.cc,v 1.44 1997/10/27 22:49:26 wessels Exp $
  *
  * DEBUG: section 34    Dnsserver interface
  * AUTHOR: Harvest Derived
@@ -216,6 +216,8 @@ dnsGetFirstAvailable(void)
        dns = *(dns_child_table + k);
        if (BIT_TEST(dns->flags, DNS_FLAG_BUSY))
            continue;
+       if (BIT_TEST(dns->flags, DNS_FLAG_CLOSING))
+           continue;
        if (!BIT_TEST(dns->flags, DNS_FLAG_ALIVE))
            continue;
        return dns;