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

index d7f79948d98490c41371968c070c29b0566c02c0..d2ccccfa179de2c02c76757817be149fa9a55e11 100644 (file)
@@ -374,7 +374,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 bbc09196f2cc36c0d12d3886a051d97ac2bf3bcd..30861080305f455d5786228d9fb13be20c77948a 100644 (file)
@@ -447,5 +447,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));
 }