]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Need to handle more cases when store_client callback returns -1
authorwessels <>
Fri, 31 Oct 1997 05:41:21 +0000 (05:41 +0000)
committerwessels <>
Fri, 31 Oct 1997 05:41:21 +0000 (05:41 +0000)
src/client_side.cc

index ebefcb099b1c9e8adbf575dd8f767271b62dc9f9..5ac6310eacda2770be4d8c17d724263c76732ab1 100644 (file)
@@ -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 */