new_mkey_kvno (used when stashing) uninitialized, use get_next_kvno to
set the latter to the only non-zero value that add_new_mkey will
accept.
ticket: 6617
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25148
dc483132-0cff-0310-8789-
dd5450dbe970
goto cleanup_return;
}
- retval = add_new_mkey(util_context, master_entry, &new_mkeyblock, 0);
+ new_mkey_kvno = get_next_kvno(util_context, master_entry);
+ retval = add_new_mkey(util_context, master_entry, &new_mkeyblock,
+ new_mkey_kvno);
if (retval) {
com_err(progname, retval,
_("adding new master key to master principal"));