From: wessels <> Date: Fri, 31 Oct 1997 05:41:21 +0000 (+0000) Subject: Need to handle more cases when store_client callback returns -1 X-Git-Tag: SQUID_3_0_PRE1~4608 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=070d29eb2825cc31d8f9e3c669b916110af2d676;p=thirdparty%2Fsquid.git Need to handle more cases when store_client callback returns -1 --- diff --git a/src/client_side.cc b/src/client_side.cc index ebefcb099b..5ac6310eac 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -1,6 +1,6 @@ /* - * $Id: client_side.cc,v 1.137 1997/10/30 03:31:19 wessels Exp $ + * $Id: client_side.cc,v 1.138 1997/10/30 22:41:21 wessels Exp $ * * DEBUG: section 33 Client-side Routines * AUTHOR: Duane Wessels @@ -223,7 +223,7 @@ icpHandleIMSReply(void *data, char *buf, ssize_t size) put_free_4k_page(buf); buf = NULL; /* unregister this handler */ - if (entry->store_status == STORE_ABORTED) { + if (size < 0 || entry->store_status == STORE_ABORTED) { debug(33, 3) ("icpHandleIMSReply: ABORTED '%s'\n", entry->url); /* We have an existing entry, but failed to validate it */ /* Its okay to send the old one anyway */