]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug #817: maximum_object_size too large causes squid not to cache
authorhno <>
Thu, 6 Nov 2003 23:55:24 +0000 (23:55 +0000)
committerhno <>
Thu, 6 Nov 2003 23:55:24 +0000 (23:55 +0000)
src/cache_cf.cc

index 3a608ad54eec8dd64d606ead9674a94aca2e64ac..5290d2240c5c0090c984dff0a3bcf3b8d912191f 100644 (file)
@@ -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<size_t>(m * d / u);
+
+    if (static_cast<double>(*bptr) != m * d / u)
+        self_destruct();
 }
 
 static size_t