summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
fdb4199)
auth_con to NULL after freeing since it's global.
int argl[2];
krb5_ccache ccache = NULL;
krb5_data auth;
int argl[2];
krb5_ccache ccache = NULL;
krb5_data auth;
+ krb5_error_code problem;
- status = krb5_init_context(&context);
- if (status)
+ problem = krb5_init_context(&context);
+ if (problem)
- status = krb5_auth_con_init(context, &auth_con);
- if (status)
+ problem = krb5_auth_con_init(context, &auth_con);
+ if (problem)
- status = krb5_cc_default(context, &ccache);
- if (status)
+ problem = krb5_cc_default(context, &ccache);
+ if (problem)
- status = krb5_mk_req(context, &auth_con, NULL, MOIRA_SNAME, host, NULL,
+ problem = krb5_mk_req(context, &auth_con, NULL, MOIRA_SNAME, host, NULL,
goto out;
params.u.mr_procno = MR_KRB5_AUTH;
goto out;
params.u.mr_procno = MR_KRB5_AUTH;
krb5_free_data_contents(context, &auth);
if (auth_con)
krb5_auth_con_free(context, auth_con);
krb5_free_data_contents(context, &auth);
if (auth_con)
krb5_auth_con_free(context, auth_con);