(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:
		| @@ -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); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Love Hörnquist Åstrand
					Love Hörnquist Åstrand