(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:
@@ -241,9 +241,11 @@ get_cred_cache(krb5_context context,
|
|||||||
if(client != default_client) {
|
if(client != default_client) {
|
||||||
krb5_free_principal(context, default_client);
|
krb5_free_principal(context, default_client);
|
||||||
default_client = NULL;
|
default_client = NULL;
|
||||||
|
if (id != NULL) {
|
||||||
krb5_cc_close(context, id);
|
krb5_cc_close(context, id);
|
||||||
id = NULL;
|
id = NULL;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else if(ccache != NULL)
|
} else if(ccache != NULL)
|
||||||
id = ccache;
|
id = ccache;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user