From: hno <> Date: Sun, 10 Mar 2002 05:43:12 +0000 (+0000) Subject: max-conn= cache_peer option parsing bugfix by Michael Smirnov X-Git-Tag: SQUID_3_0_PRE1~1167 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd359dd6a5c2d52b9572e88bf2ad8a5f6d399a3f;p=thirdparty%2Fsquid.git max-conn= cache_peer option parsing bugfix by Michael Smirnov --- diff --git a/src/cache_cf.cc b/src/cache_cf.cc index a72d0696a0..a8222b008b 100644 --- a/src/cache_cf.cc +++ b/src/cache_cf.cc @@ -1,6 +1,6 @@ /* - * $Id: cache_cf.cc,v 1.400 2002/01/15 16:49:19 hno Exp $ + * $Id: cache_cf.cc,v 1.401 2002/03/09 22:43:12 hno Exp $ * * DEBUG: section 3 Configuration File Parsing * AUTHOR: Harvest Derived @@ -1459,7 +1459,7 @@ parse_peer(peer ** head) #endif } else if (!strcasecmp(token, "allow-miss")) { p->options.allow_miss = 1; - } else if (!strcasecmp(token, "max-conn=")) { + } else if (!strncasecmp(token, "max-conn=", 9)) { p->max_conn = atoi(token + 9); } else { debug(3, 0) ("parse_peer: token='%s'\n", token);