aboutsummaryrefslogtreecommitdiff
path: root/lib/isc/hmacmd5.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/isc/hmacmd5.c')
-rw-r--r--lib/isc/hmacmd5.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/isc/hmacmd5.c b/lib/isc/hmacmd5.c
index 9c10532c53c1..d27bfe42a786 100644
--- a/lib/isc/hmacmd5.c
+++ b/lib/isc/hmacmd5.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2004-2007, 2009, 2013, 2014 Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2004-2007, 2009, 2013-2015 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2000, 2001 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
@@ -159,5 +159,5 @@ isc_hmacmd5_verify2(isc_hmacmd5_t *ctx, unsigned char *digest, size_t len) {
REQUIRE(len <= ISC_MD5_DIGESTLENGTH);
isc_hmacmd5_sign(ctx, newdigest);
- return (isc_safe_memcmp(digest, newdigest, len));
+ return (isc_safe_memequal(digest, newdigest, len));
}