From: Paul Park Date: Thu, 11 May 1995 16:23:30 +0000 (+0000) Subject: Avoid a core dump when the master key is entered incorrectly X-Git-Tag: krb5-1.0-beta6~2000 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fcec24792dd8a2c37994b86bfacf9ce967db15ae;p=krb5.git Avoid a core dump when the master key is entered incorrectly git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5797 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kadmin/v5server/srv_key.c b/src/kadmin/v5server/srv_key.c index 394ea22f7..8a23fb883 100644 --- a/src/kadmin/v5server/srv_key.c +++ b/src/kadmin/v5server/srv_key.c @@ -222,8 +222,6 @@ key_init(kcontext, debug_level, enc_type, key_type, master_key_name, manual, error_message(kret)); goto cleanup; } - mencb_init = 1; - mkeyb_init = 1; /* Verify the master key */ if (kret = krb5_db_verify_master_key(kcontext, @@ -242,6 +240,8 @@ key_init(kcontext, debug_level, enc_type, key_type, master_key_name, manual, fprintf(stderr, key_key_pp_fmt, programname, error_message(kret)); goto leave; } + mencb_init = 1; + mkeyb_init = 1; /* Now initialize the random key */ kret = krb5_init_random_key(kcontext,