(get_cred_cache): you cannot reuse the cred cache if the principals
are different. close and NULL the old one so that we create a new one. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6349 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -241,6 +241,8 @@ 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;
|
||||||
|
krb5_cc_close(context, id);
|
||||||
|
id = NULL;
|
||||||
}
|
}
|
||||||
} else if(ccache != NULL)
|
} else if(ccache != NULL)
|
||||||
id = ccache;
|
id = ccache;
|
||||||
|
Reference in New Issue
Block a user