fix reversed comparison on key equality
authorJohn Kohl <jtkohl@mit.edu>
Tue, 13 Feb 1990 16:50:39 +0000 (16:50 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Tue, 13 Feb 1990 16:50:39 +0000 (16:50 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@359 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/kdb/verify_mky.c

index 2c5140ed5ee20a82a6e0017365a629f39a2cc599..24ee7b0d5ac4cd92e4bdb38caa4a82d4d2a010e2 100644 (file)
@@ -62,7 +62,7 @@ krb5_encrypt_block *eblock;
        (void) (*eblock->crypto_entry->finish_key)(eblock);
        return retval;
     }
-    if (!bcmp((char *)mkey->contents, (char *)tempkey.contents,
+    if (bcmp((char *)mkey->contents, (char *)tempkey.contents,
              mkey->length)) {
        retval = KRB5_KDB_BADMASTERKEY;
        (void) (*eblock->crypto_entry->finish_key)(eblock);