Make sure the krb5 status variables are correctly initialized.
This commit is contained in:
parent
b91cd7da8c
commit
74929c2edf
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=253017
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user