only set ret flags i we have them

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25195 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2009-05-06 19:04:26 +00:00
parent e5b52d6b32
commit c9d5eca012

View File

@@ -260,6 +260,7 @@ OM_uint32 gss_accept_sec_context(OM_uint32 *minor_status,
if (mech_ret_flags & GSS_C_DELEG_FLAG) { if (mech_ret_flags & GSS_C_DELEG_FLAG) {
if (!delegated_cred_handle) { if (!delegated_cred_handle) {
m->gm_release_cred(minor_status, &delegated_mc); m->gm_release_cred(minor_status, &delegated_mc);
if (ret_flags)
*ret_flags &= ~GSS_C_DELEG_FLAG; *ret_flags &= ~GSS_C_DELEG_FLAG;
} else if (delegated_mc) { } else if (delegated_mc) {
struct _gss_cred *dcred; struct _gss_cred *dcred;