diff --git a/lib/gssapi/acquire_cred.c b/lib/gssapi/acquire_cred.c index f1d6627a3..43e56432c 100644 --- a/lib/gssapi/acquire_cred.c +++ b/lib/gssapi/acquire_cred.c @@ -193,6 +193,7 @@ static OM_uint32 acquire_initiator_cred if (kret) goto end; handle->lifetime = cred.times.endtime; + handle->cred_flags |= GSS_CF_DESTROY_CRED_ON_RELEASE; } else { ret = _gssapi_krb5_ccache_lifetime(minor_status, diff --git a/lib/gssapi/krb5/acquire_cred.c b/lib/gssapi/krb5/acquire_cred.c index f1d6627a3..43e56432c 100644 --- a/lib/gssapi/krb5/acquire_cred.c +++ b/lib/gssapi/krb5/acquire_cred.c @@ -193,6 +193,7 @@ static OM_uint32 acquire_initiator_cred if (kret) goto end; handle->lifetime = cred.times.endtime; + handle->cred_flags |= GSS_CF_DESTROY_CRED_ON_RELEASE; } else { ret = _gssapi_krb5_ccache_lifetime(minor_status,