Make sure the krb5 status variables are correctly initialized.

This commit is contained in:
Rick Macklem 2013-07-08 01:08:57 +00:00
parent b91cd7da8c
commit 74929c2edf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=253017

View File

@ -1196,6 +1196,7 @@ gssd_get_cc_from_keytab(const char *name)
ret = krb5_init_context(&context);
if (ret != 0)
return (ret);
opt_ret = cc_ret = kt_ret = cred_ret = 0;
princ_ret = ret = krb5_parse_name(context, name, &principal);
if (ret == 0)
opt_ret = ret = krb5_get_init_creds_opt_alloc(context, &opt);