From: hno <> Date: Sat, 16 Oct 2004 03:10:44 +0000 (+0000) Subject: Bug #1072 (#968): Invalid value for range_offset_limit -1 KB X-Git-Tag: SQUID_3_0_PRE4~1021 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8ecd7d7c315a3e9e386db540cf9cd4ec8e8ebce;p=thirdparty%2Fsquid.git Bug #1072 (#968): Invalid value for range_offset_limit -1 KB --- diff --git a/src/cache_cf.cc b/src/cache_cf.cc index 3379e59dd1..50bcb536aa 100644 --- a/src/cache_cf.cc +++ b/src/cache_cf.cc @@ -1,6 +1,6 @@ /* - * $Id: cache_cf.cc,v 1.454 2004/08/30 03:28:58 robertc Exp $ + * $Id: cache_cf.cc,v 1.455 2004/10/15 21:10:44 hno Exp $ * * DEBUG: section 3 Configuration File Parsing * AUTHOR: Harvest Derived @@ -677,7 +677,7 @@ parseBytesLine(size_t * bptr, const char *units) if ((token = strtok(NULL, w_space)) == NULL) self_destruct(); - if (strcmp(token, "none") == 0) { + if (strcmp(token, "none") == 0 || strcmp(token, "-1") == 0) { *bptr = static_cast(-1); return; }