From: wessels <> Date: Sat, 18 Oct 1997 13:20:57 +0000 (+0000) Subject: bug in storeCheckCachable(): only check content length if STORE_OK X-Git-Tag: SQUID_3_0_PRE1~4768 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=83d453f3c8ecd2b7724ca6545ee7e0cf49bf8463;p=thirdparty%2Fsquid.git bug in storeCheckCachable(): only check content length if STORE_OK --- diff --git a/src/store.cc b/src/store.cc index 1a25a2b55b..200e70acfc 100644 --- a/src/store.cc +++ b/src/store.cc @@ -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");