]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 791: FQDNcache discards negative responses when using internal DNS
authorhno <>
Sun, 12 Oct 2003 04:33:51 +0000 (04:33 +0000)
committerhno <>
Sun, 12 Oct 2003 04:33:51 +0000 (04:33 +0000)
src/fqdncache.cc

index 61e69cb729cdce04901a11f9d5728cc7c851a58a..c1b2ad248c73bccba48f7dec54081b5590dfee35 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: fqdncache.cc,v 1.155 2003/02/21 22:50:08 robertc Exp $
+ * $Id: fqdncache.cc,v 1.156 2003/10/11 22:33:51 hno Exp $
  *
  * DEBUG: section 35    FQDN Cache
  * AUTHOR: Harvest Derived
@@ -333,7 +333,7 @@ fqdncacheParse(rfc1035_rr * answers, int nr)
     int k;
     int na = 0;
     memset(&f, '\0', sizeof(f));
-    f.expires = squid_curtime;
+    f.expires = squid_curtime + Config.negativeDnsTtl;
     f.flags.negcached = 1;
 
     if (nr < 0) {