]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: hno
authoramosjeffries <>
Mon, 25 Feb 2008 10:38:11 +0000 (10:38 +0000)
committeramosjeffries <>
Mon, 25 Feb 2008 10:38:11 +0000 (10:38 +0000)
digest auth related memory corruption

lib/rfc2617.c

index 024787953210ffadc148617b3d6441a1f9330705..d001c20684a44d452ff4237c06883c25e01ffc25 100644 (file)
@@ -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';
     }
 }