Oops, initialize the krb5 ret values correctly (to anything non-zero).
This commit is contained in:
parent
74929c2edf
commit
992e659005
@ -1196,7 +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;
|
||||
opt_ret = cc_ret = kt_ret = cred_ret = 1; /* anything non-zero */
|
||||
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