use memcmp rather than bcmp
authorJohn Kohl <jtkohl@mit.edu>
Thu, 8 Nov 1990 15:23:55 +0000 (15:23 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Thu, 8 Nov 1990 15:23:55 +0000 (15:23 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1429 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/kdb/verify_mky.c
src/lib/krb5/krb/addr_comp.c
src/lib/krb5/krb/rd_safe.c

index 5767ba10d854126899533816e0fb4c5ad833f4e2..616b740a82b082b3017b7d7fd88cf120a9de1b18 100644 (file)
@@ -60,8 +60,8 @@ krb5_encrypt_block *eblock;
        (void) krb5_finish_key(eblock);
        return retval;
     }
-    if (bcmp((char *)mkey->contents, (char *)tempkey.contents,
-             mkey->length)) {
+    if (memcmp((char *)mkey->contents, (char *)tempkey.contents,
+              mkey->length)) {
        retval = KRB5_KDB_BADMASTERKEY;
        (void) krb5_finish_key(eblock);
     } else
index 20531ac688b780e47fc0ef37b68ecf4128ee336b..3b36ca7988a613a4e1211fa9a04660dd2906df69 100644 (file)
@@ -32,7 +32,8 @@ const krb5_address *addr2;
 
     if (addr1->length != addr2->length)
        return(FALSE);
-    if (bcmp((char *)addr1->contents, (char *)addr2->contents, addr1->length))
+    if (memcmp((char *)addr1->contents, (char *)addr2->contents,
+              addr1->length))
        return FALSE;
     else
        return TRUE;
index 158ce007706519d20ada7bc32eeb964f6c5db344..af6addeef7b8b54cba0ea586e1991662d9512f37 100644 (file)
@@ -150,8 +150,8 @@ krb5_data *outbuf;
 
 
     if (our_cksum.length != his_cksum->length ||
-       bcmp((char *)our_cksum.contents, (char *)his_cksum->contents,
-            our_cksum.length)) {
+       memcmp((char *)our_cksum.contents, (char *)his_cksum->contents,
+              our_cksum.length)) {
        cleanup();
        return KRB5KRB_AP_ERR_MODIFIED;
     }