returns from krb5_rd_cred more sanely.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13768
dc483132-0cff-0310-8789-
dd5450dbe970
+2001-10-01 Tom Yu <tlyu@mit.edu>
+
+ * accept_sec_context.c (rd_and_store_for_creds): Handle error
+ returns from krb5_rd_cred more sanely.
+
2001-07-27 Danilo Almeida <dalmeida@mit.edu>
* gssapi_krb5.h: Unmark gss_mech_krb5 variable as an import.
krb5_data *inbuf;
krb5_gss_cred_id_t *out_cred;
{
- krb5_creds ** creds;
+ krb5_creds ** creds = NULL;
krb5_error_code retval;
- krb5_ccache ccache;
+ krb5_ccache ccache = NULL;
krb5_gss_cred_id_t cred = NULL;
extern krb5_cc_ops krb5_mcc_ops;
krb5_auth_context auth_context = NULL;
goto cleanup;
*/
cleanup:
- krb5_free_tgt_creds(context, creds);
+ if (creds)
+ krb5_free_tgt_creds(context, creds);
if (!cred && ccache)
(void)krb5_cc_close(context, ccache);