int argl[2];
krb5_ccache ccache = NULL;
krb5_data auth;
+ krb5_error_code problem;
CHECK_CONNECTED;
*p = '\0';
if (!context)
- status = krb5_init_context(&context);
- if (status)
+ problem = krb5_init_context(&context);
+ if (problem)
goto out;
- status = krb5_auth_con_init(context, &auth_con);
- if (status)
+ problem = krb5_auth_con_init(context, &auth_con);
+ if (problem)
goto out;
- status = krb5_cc_default(context, &ccache);
- if (status)
+ problem = krb5_cc_default(context, &ccache);
+ if (problem)
goto out;
- status = krb5_mk_req(context, &auth_con, NULL, MOIRA_SNAME, host, NULL,
+ problem = krb5_mk_req(context, &auth_con, NULL, MOIRA_SNAME, host, NULL,
ccache, &auth);
- if (status)
+ if (problem)
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);
+ auth_con = NULL;
return status;
}