From: wessels <> Date: Sun, 28 Jun 1998 08:01:44 +0000 (+0000) Subject: call storeComplete BEFORE fwdUnregister X-Git-Tag: SQUID_3_0_PRE1~3132 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=52f0d2439ba104412429516f48e68d6301be0b7b;p=thirdparty%2Fsquid.git call storeComplete BEFORE fwdUnregister --- diff --git a/src/http.cc b/src/http.cc index 6e9617a109..b57d08ceb1 100644 --- a/src/http.cc +++ b/src/http.cc @@ -1,6 +1,6 @@ /* - * $Id: http.cc,v 1.287 1998/06/25 20:08:54 wessels Exp $ + * $Id: http.cc,v 1.288 1998/06/28 02:01:44 wessels Exp $ * * DEBUG: section 11 Hypertext Transfer Protocol (HTTP) * AUTHOR: Harvest Derived @@ -499,8 +499,10 @@ httpReadReply(int fd, void *data) commSetTimeout(fd, -1, NULL, NULL); commSetSelect(fd, COMM_SELECT_READ, NULL, NULL, 0); comm_remove_close_handler(fd, httpStateFree, httpState); - fwdUnregister(fd, httpState->fwdState); storeComplete(entry); /* deallocates mem_obj->request */ + /* call storeComplete BEFORE fwdUnregister or else fwdUnregister + * will storeAbort */ + fwdUnregister(fd, httpState->fwdState); pconnPush(fd, request->host, request->port); httpState->fd = -1; httpStateFree(-1, httpState);