(gss_release_cred): use GSS_CF_DESTROY_CRED_ON_RELEASE to decide if

the cache should be krb5_cc_destroy-ed


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16282 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-11-02 08:57:35 +00:00
parent f0dc59770a
commit 6ece760454
2 changed files with 2 additions and 2 deletions

View File

@@ -57,7 +57,7 @@ OM_uint32 gss_release_cred
if ((*cred_handle)->ccache != NULL) {
const krb5_cc_ops *ops;
ops = krb5_cc_get_ops(gssapi_krb5_context, (*cred_handle)->ccache);
if (ops == &krb5_mcc_ops)
if ((*cred_handle)->cred_flags & GSS_CF_DESTROY_CRED_ON_RELEASE)
krb5_cc_destroy(gssapi_krb5_context, (*cred_handle)->ccache);
else
krb5_cc_close(gssapi_krb5_context, (*cred_handle)->ccache);

View File

@@ -57,7 +57,7 @@ OM_uint32 gss_release_cred
if ((*cred_handle)->ccache != NULL) {
const krb5_cc_ops *ops;
ops = krb5_cc_get_ops(gssapi_krb5_context, (*cred_handle)->ccache);
if (ops == &krb5_mcc_ops)
if ((*cred_handle)->cred_flags & GSS_CF_DESTROY_CRED_ON_RELEASE)
krb5_cc_destroy(gssapi_krb5_context, (*cred_handle)->ccache);
else
krb5_cc_close(gssapi_krb5_context, (*cred_handle)->ccache);