]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
bcmp -> memcmp
authorFrancis Dupont <fdupont@isc.org>
Wed, 17 Jan 2018 14:33:11 +0000 (15:33 +0100)
committerFrancis Dupont <fdupont@isc.org>
Wed, 17 Jan 2018 14:33:11 +0000 (15:33 +0100)
lib/isc/md5.c
lib/isc/sha1.c

index f9f11c9e531a7ab3a9bd88d6992a7988440ee1fa..f1a5980d26bee0c67e05a0f67052d493a4307f67 100644 (file)
@@ -383,7 +383,7 @@ isc_md5_check(isc_boolean_t testing) {
        /*
         * Must return true in standard case, should return false for testing.
         */
-       return (ISC_TF(bcmp(digest, expected, ISC_MD5_DIGESTLENGTH) == 0));
+       return (ISC_TF(memcmp(digest, expected, ISC_MD5_DIGESTLENGTH) == 0));
 }
 
 #else /* !PK11_MD5_DISABLE */
index a05c9104bfcae4f57fddedebbaf42b0f1e952cff..6f24ef56c06128dd51d4ef121f3a029c750370de 100644 (file)
@@ -456,5 +456,5 @@ isc_sha1_check(isc_boolean_t testing) {
        /*
         * Must return true in standard case, should return false for testing.
         */
-       return (ISC_TF(bcmp(digest, expected, ISC_SHA1_DIGESTLENGTH) == 0));
+       return (ISC_TF(memcmp(digest, expected, ISC_SHA1_DIGESTLENGTH) == 0));
 }