aboutsummaryrefslogtreecommitdiff
path: root/lib/isc/hmacmd5.c
diff options
context:
space:
mode:
authorErwin Lansing <erwin@FreeBSD.org>2015-10-01 07:47:44 +0000
committerErwin Lansing <erwin@FreeBSD.org>2015-10-01 07:47:44 +0000
commitff14d03521a89636be959e65a21374951fe699ba (patch)
treef50c4271d12b6939db067758ade30df93a038a91 /lib/isc/hmacmd5.c
parentb04f5d3d3ff49c604e768add0cf35600b9eee074 (diff)
Vendor import of BIND 9.9.8vendor/bind9/9.9.8
Sponsored by: DK Hostmaster A/S
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));
}