summaryrefslogtreecommitdiffstats
path: root/src/lib/kdb
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/kdb')
-rw-r--r--src/lib/kdb/verify_mky.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/kdb/verify_mky.c b/src/lib/kdb/verify_mky.c
index 9b221d4ac5..99b5e38f51 100644
--- a/src/lib/kdb/verify_mky.c
+++ b/src/lib/kdb/verify_mky.c
@@ -37,7 +37,8 @@ krb5_encrypt_block *eblock;
{
krb5_error_code retval;
krb5_db_entry master_entry;
- int nprinc, more;
+ int nprinc;
+ krb5_boolean more;
krb5_keyblock tempkey;
nprinc = 1;
@@ -61,7 +62,8 @@ krb5_encrypt_block *eblock;
(void) (*eblock->crypto_entry->finish_key)(eblock);
return retval;
}
- if (!bcmp(mkey->contents, tempkey.contents, mkey->length)) {
+ if (!bcmp((char *)mkey->contents, (char *)tempkey.contents,
+ mkey->length)) {
retval = KRB5_KDB_BADMASTERKEY;
(void) (*eblock->crypto_entry->finish_key)(eblock);
} else