(get_cred_cache): band-aid instead of rewriting

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6437 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1999-07-07 10:05:41 +00:00
parent 468bef78c2
commit f284b5472f

View File

@@ -241,8 +241,10 @@ get_cred_cache(krb5_context context,
if(client != default_client) {
krb5_free_principal(context, default_client);
default_client = NULL;
krb5_cc_close(context, id);
id = NULL;
if (id != NULL) {
krb5_cc_close(context, id);
id = NULL;
}
}
} else if(ccache != NULL)
id = ccache;