Only wrap the delegated cred if we are going to return it to the consumer.

From Rafal Malinowski.


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

View File

@@ -659,7 +659,7 @@ acceptor_start
if (ret == GSS_S_COMPLETE)
ctx->open = 1;
if (delegated_cred_handle)
if (mech_delegated_cred && delegated_cred_handle)
ret = _gss_spnego_alloc_cred(minor_status,
mech_delegated_cred,
delegated_cred_handle);