Only wrap the delegated cred if we got a delegated mech cred.

From Rafal Malinowski.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21187 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2007-06-20 03:30:45 +00:00
parent 79f9985a9c
commit c84d4731b3

View File

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