From: wessels <> Date: Wed, 17 Apr 1996 00:30:06 +0000 (+0000) Subject: fix weight parsing X-Git-Tag: SQUID_3_0_PRE1~6147 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c06a5b1527dc33d4fcd49c5b71ae565af95a9fd5;p=thirdparty%2Fsquid.git fix weight parsing --- diff --git a/src/cache_cf.cc b/src/cache_cf.cc index 18cb0deebd..a16ede4f41 100644 --- a/src/cache_cf.cc +++ b/src/cache_cf.cc @@ -1,4 +1,4 @@ -/* $Id: cache_cf.cc,v 1.46 1996/04/16 05:48:57 wessels Exp $ */ +/* $Id: cache_cf.cc,v 1.47 1996/04/16 18:30:06 wessels Exp $ */ /* DEBUG: Section 3 cache_cf: Configuration file parsing */ @@ -427,9 +427,10 @@ static void parseCacheHostLine() while ((token = strtok(NULL, w_space))) { if (!strcasecmp(token, "proxy-only")) { proxy_only = 1; - } else if (!strcasecmp(token, "weight=")) { + } else if (!strncasecmp(token, "weight=", 7)) { weight = atoi(token + 7); } else { + debug(3,0,"parseCacheHostLine: token='%s'\n", token); self_destruct(); } }