From: amosjeffries <> Date: Mon, 25 Feb 2008 10:38:11 +0000 (+0000) Subject: Author: hno X-Git-Tag: SQUID_3_0_STABLE2~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41bc6b14e2004f02c1e646bf1ef3315b3a7bf268;p=thirdparty%2Fsquid.git Author: hno digest auth related memory corruption --- diff --git a/lib/rfc2617.c b/lib/rfc2617.c index 0247879532..d001c20684 100644 --- a/lib/rfc2617.c +++ b/lib/rfc2617.c @@ -13,7 +13,7 @@ /* - * $Id: rfc2617.c,v 1.12 2007/11/15 16:47:34 wessels Exp $ + * $Id: rfc2617.c,v 1.12.2.1 2008/02/25 03:38:11 amosjeffries Exp $ * * DEBUG: * AUTHOR: RFC 2617 & Robert Collins @@ -94,7 +94,7 @@ CvtBin(const HASHHEX Hex, HASH Bin) else Bin[i / 2] |= n; } - for (; i <= HASHHEXLEN; i++) { + for (i = i / 2; i < HASHLEN; i++) { Bin[i] = '\0'; } }