From: John Kohl Date: Tue, 13 Feb 1990 16:50:39 +0000 (+0000) Subject: fix reversed comparison on key equality X-Git-Tag: krb5-1.0-alpha2~1025 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=dac06b9747d5b7f0d89cb2cf4db28ef3c527a69a;p=krb5.git fix reversed comparison on key equality git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@359 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/kdb/verify_mky.c b/src/lib/kdb/verify_mky.c index 2c5140ed5..24ee7b0d5 100644 --- a/src/lib/kdb/verify_mky.c +++ b/src/lib/kdb/verify_mky.c @@ -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);