From: wessels <> Date: Thu, 12 Sep 1996 06:31:43 +0000 (+0000) Subject: - Fixed up InvokeHandlers() to clear handler before calling. X-Git-Tag: SQUID_3_0_PRE1~5831 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0701c888d54c1e91db753f76279dbfec8a8c5af3;p=thirdparty%2Fsquid.git - Fixed up InvokeHandlers() to clear handler before calling. --- diff --git a/src/store.cc b/src/store.cc index 9fa1ca557d..379cee6c71 100644 --- a/src/store.cc +++ b/src/store.cc @@ -1,6 +1,6 @@ /* - * $Id: store.cc,v 1.102 1996/09/11 22:41:14 wessels Exp $ + * $Id: store.cc,v 1.103 1996/09/12 00:31:43 wessels Exp $ * * DEBUG: section 20 Storeage Manager * AUTHOR: Harvest Derived @@ -964,6 +964,7 @@ static void InvokeHandlers(e) StoreEntry *e; { int i; + int fd; MemObject *mem = e->mem_obj; struct pentry *p = NULL; PIF handler = NULL; @@ -976,10 +977,11 @@ static void InvokeHandlers(e) if ((handler = p->handler) == NULL) continue; data = p->data; + fd = p->fd; memset(p, '\0', sizeof(struct pentry)); safe_free(p); mem->pending[i] = NULL; - handler(mem->pending[i]->fd, e, data); + handler(fd, e, data); } }