(spnego_reply): if the reply token was of length 0, make it the same

as no token. Pointed out by Zeqing Xia.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22598 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2008-02-18 18:19:51 +00:00
parent 74bb34d6f0
commit c2bc1d4b03

View File

@@ -480,7 +480,8 @@ spnego_reply
return GSS_S_BAD_MECH; return GSS_S_BAD_MECH;
} }
if (resp.responseToken != NULL || /* if a token (of non zero length), or no context, pass to underlaying mech */
if ((resp.responseToken != NULL && resp.responseToken->length) ||
ctx->negotiated_ctx_id == GSS_C_NO_CONTEXT) { ctx->negotiated_ctx_id == GSS_C_NO_CONTEXT) {
gss_buffer_desc mech_input_token; gss_buffer_desc mech_input_token;