From: wessels <> Date: Fri, 21 Feb 1997 03:22:48 +0000 (+0000) Subject: Fix extra unlocking on partial reads from dnsserver X-Git-Tag: SQUID_3_0_PRE1~5099 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eb5ea006b7e18844a2dd9c36d312594287595b83;p=thirdparty%2Fsquid.git Fix extra unlocking on partial reads from dnsserver --- diff --git a/src/ipcache.cc b/src/ipcache.cc index 0f07480437..6b9cf4102c 100644 --- a/src/ipcache.cc +++ b/src/ipcache.cc @@ -1,6 +1,6 @@ /* - * $Id: ipcache.cc,v 1.103 1997/02/19 17:11:06 wessels Exp $ + * $Id: ipcache.cc,v 1.104 1997/02/20 20:22:48 wessels Exp $ * * DEBUG: section 14 IP Cache * AUTHOR: Harvest Derived @@ -609,8 +609,8 @@ ipcache_dnsHandleRead(int fd, dnsserver_t * dnsData) i->expires = x->expires; ipcache_call_pending(i); } + ipcacheUnlockEntry(i); /* unlock from IP_DISPATCHED */ } - ipcacheUnlockEntry(i); /* unlock from IP_DISPATCHED */ if (dnsData->offset == 0) { dnsData->data = NULL; dnsData->flags &= ~DNS_FLAG_BUSY;