]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
call storeComplete BEFORE fwdUnregister
authorwessels <>
Sun, 28 Jun 1998 08:01:44 +0000 (08:01 +0000)
committerwessels <>
Sun, 28 Jun 1998 08:01:44 +0000 (08:01 +0000)
src/http.cc

index 6e9617a1096fc60f280082cf9ff3ba7725ce618d..b57d08ceb1b5c29693afe83cfaafed193425b894 100644 (file)
@@ -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);