]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
dont double-release expired ipcache entry
authorwessels <>
Sat, 4 Jan 1997 04:04:27 +0000 (04:04 +0000)
committerwessels <>
Sat, 4 Jan 1997 04:04:27 +0000 (04:04 +0000)
src/ipcache.cc

index 2ce79b4cf8143bc831592596c92f38acdbfcb457..83ea948e9e583552e842931a04cc64342445fda4 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: ipcache.cc,v 1.92 1996/12/21 00:43:52 wessels Exp $
+ * $Id: ipcache.cc,v 1.93 1997/01/03 21:04:27 wessels Exp $
  *
  * DEBUG: section 14    IP Cache
  * AUTHOR: Harvest Derived
@@ -686,8 +686,7 @@ ipcache_nbgethostbyname(const char *name, int fd, IPH handler, void *handlerData
        ipcacheAddPending(i, fd, handler, handlerData);
         if (squid_curtime - i->expires > 60) {
            i->status = IP_NEGATIVE_CACHED;
-           ipcache_call_pending(i);
-           ipcache_release(i);
+           ipcache_call_pending(i);    /* will also release it */
        }
        return;
     } else {