From 657266fee44de8d2e92149cab3fa749854c35180 Mon Sep 17 00:00:00 2001 From: wessels <> Date: Thu, 12 Sep 1996 06:31:22 +0000 Subject: [PATCH] - Fixed coredump-causing bugs in icpHandleIMSReply(). --- src/client_side.cc | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/src/client_side.cc b/src/client_side.cc index eedc371322..91848d9452 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -1,6 +1,6 @@ /* - * $Id: client_side.cc,v 1.19 1996/09/11 22:41:11 wessels Exp $ + * $Id: client_side.cc,v 1.20 1996/09/12 00:31:22 wessels Exp $ * * DEBUG: section 33 Client-side Routines * AUTHOR: Duane Wessels @@ -435,22 +435,16 @@ int icpHandleIMSReply(fd, entry, data) fatal_dump("icpHandleIMSReply: failed to load headers, lost race"); httpParseHeaders(hbuf, entry->mem_obj->reply); ttlSet(entry); - if (unlink_request) + if (unlink_request) { requestUnlink(entry->mem_obj->request); + entry->mem_obj->request = NULL; + } } else { /* the client can handle this reply, whatever it is */ icpState->log_type = LOG_TCP_EXPIRED_MISS; storeUnlockObject(icpState->old_entry); } - /* done with old_entry */ - icpState->old_entry = NULL; - /* switch the handler for incoming data */ - if (entry->store_status != STORE_OK) - storeRegister(icpState->entry, - fd, - (PIF) icpHandleStore, - (void *) icpState); - /* give it to the client */ - icpSendMoreData(fd, icpState); + icpState->old_entry = NULL; /* done with old_entry */ + icpSendMoreData(fd, icpState); /* give data to the client */ return 1; } -- 2.47.3