From 52f0d2439ba104412429516f48e68d6301be0b7b Mon Sep 17 00:00:00 2001 From: wessels <> Date: Sun, 28 Jun 1998 08:01:44 +0000 Subject: [PATCH] call storeComplete BEFORE fwdUnregister --- src/http.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); -- 2.47.3