From: wessels <> Date: Sat, 4 Jan 1997 04:04:27 +0000 (+0000) Subject: dont double-release expired ipcache entry X-Git-Tag: SQUID_3_0_PRE1~5247 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac4f015a609db2074a3703843232d7d69b6ddfa5;p=thirdparty%2Fsquid.git dont double-release expired ipcache entry --- diff --git a/src/ipcache.cc b/src/ipcache.cc index 2ce79b4cf8..83ea948e9e 100644 --- a/src/ipcache.cc +++ b/src/ipcache.cc @@ -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 {