]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
bug in storeCheckCachable(): only check content length if STORE_OK
authorwessels <>
Sat, 18 Oct 1997 13:20:57 +0000 (13:20 +0000)
committerwessels <>
Sat, 18 Oct 1997 13:20:57 +0000 (13:20 +0000)
src/store.cc

index 1a25a2b55bcb565f709b97e2e00d3827b57df697..200e70acfc0b4d1512ca6da2ad1c9b197e5e47af 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store.cc,v 1.294 1997/10/17 23:57:41 wessels Exp $
+ * $Id: store.cc,v 1.295 1997/10/18 07:20:57 wessels Exp $
  *
  * DEBUG: section 20    Storeage Manager
  * AUTHOR: Harvest Derived
@@ -1496,7 +1496,7 @@ storeCheckCachable(StoreEntry * e)
        debug(20, 2) ("storeCheckCachable: NO: not cachable\n");
     } else if (BIT_TEST(e->flag, RELEASE_REQUEST)) {
        debug(20, 2) ("storeCheckCachable: NO: release requested\n");
-    } else if (!storeEntryValidLength(e)) {
+    } else if (e->store_status == STORE_OK && !storeEntryValidLength(e)) {
        debug(20, 2) ("storeCheckCachable: NO: wrong content-length\n");
     } else if (BIT_TEST(e->flag, ENTRY_NEGCACHED)) {
        debug(20, 2) ("storeCheckCachable: NO: negative cached\n");