From: hno <> Date: Thu, 6 Nov 2003 23:55:24 +0000 (+0000) Subject: Bug #817: maximum_object_size too large causes squid not to cache X-Git-Tag: SQUID_3_0_PRE4~1163 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=347ae7c41c78e9598add683d1971ea6574aee942;p=thirdparty%2Fsquid.git Bug #817: maximum_object_size too large causes squid not to cache --- diff --git a/src/cache_cf.cc b/src/cache_cf.cc index 3a608ad54e..5290d2240c 100644 --- a/src/cache_cf.cc +++ b/src/cache_cf.cc @@ -1,6 +1,6 @@ /* - * $Id: cache_cf.cc,v 1.451 2003/10/20 12:33:01 robertc Exp $ + * $Id: cache_cf.cc,v 1.452 2003/11/06 16:55:24 hno Exp $ * * DEBUG: section 3 Configuration File Parsing * AUTHOR: Harvest Derived @@ -689,6 +689,9 @@ parseBytesLine(size_t * bptr, const char *units) self_destruct(); *bptr = static_cast(m * d / u); + + if (static_cast(*bptr) != m * d / u) + self_destruct(); } static size_t