]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
2215. [bug] Bad REQUIRE check isc_hmacsha1_verify(). [RT #17094]
authorMark Andrews <marka@isc.org>
Mon, 27 Aug 2007 03:27:53 +0000 (03:27 +0000)
committerMark Andrews <marka@isc.org>
Mon, 27 Aug 2007 03:27:53 +0000 (03:27 +0000)
CHANGES
lib/isc/hmacsha.c

diff --git a/CHANGES b/CHANGES
index b5a1a0d9f2ee5e1b8e7b797ef24a427c49c35b6b..519aad60d66bcc816eb932fadee5d367900bfe4a 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,5 @@
+2215.  [bug]           Bad REQUIRE check isc_hmacsha1_verify(). [RT #17094]
+
 2214.  [bug]           Deregister OpenSSL lock callback when cleaning
                        up.  Reorder OpenSSL cleanup so that RAND_cleanup()
                        is called before the locks are destroyed. [RT #17098]
index 092386ffc11721942fb8a4bea8df675291edc676..dfcd8bf5a9f07addf21861a9f07882e3d54adde4 100644 (file)
@@ -14,7 +14,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: hmacsha.c,v 1.7 2007/06/19 23:47:17 tbox Exp $ */
+/* $Id: hmacsha.c,v 1.8 2007/08/27 03:27:53 marka Exp $ */
 
 /*
  * This code implements the HMAC-SHA1, HMAC-SHA224, HMAC-SHA256, HMAC-SHA384
@@ -112,7 +112,7 @@ isc_boolean_t
 isc_hmacsha1_verify(isc_hmacsha1_t *ctx, unsigned char *digest, size_t len) {
        unsigned char newdigest[ISC_SHA1_DIGESTLENGTH];
 
-       REQUIRE(len <= ISC_SHA1_BLOCK_LENGTH);
+       REQUIRE(len <= ISC_SHA1_DIGESTLENGTH);
        isc_hmacsha1_sign(ctx, newdigest, ISC_SHA1_DIGESTLENGTH);
        return (ISC_TF(memcmp(digest, newdigest, len) == 0));
 }