From: wessels <> Date: Tue, 27 Aug 1996 23:48:12 +0000 (+0000) Subject: bug X-Git-Tag: SQUID_3_0_PRE1~5905 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fbd51e07dadf2a2bd687c79cadde487e879fd877;p=thirdparty%2Fsquid.git bug --- diff --git a/src/cache_cf.cc b/src/cache_cf.cc index b356a27632..e5843c4fd4 100644 --- a/src/cache_cf.cc +++ b/src/cache_cf.cc @@ -1,5 +1,5 @@ /* - * $Id: cache_cf.cc,v 1.73 1996/08/26 23:26:11 wessels Exp $ + * $Id: cache_cf.cc,v 1.74 1996/08/27 17:48:12 wessels Exp $ * * DEBUG: section 3 Configuration File Parsing * AUTHOR: Harvest Derived @@ -596,7 +596,8 @@ static void parseQuickAbort() Config.quickAbort.pct = 0; Config.quickAbort.max = 0; } else { - GetInteger(i); + if (sscanf(token, "%d", &i) != 1) + self_destruct(); Config.quickAbort.min = i * 1024; GetInteger(i); Config.quickAbort.pct = i * 128 / 100; /* 128 is full scale */