From: Luke Howard Date: Sat, 12 Mar 2011 04:59:44 +0000 (+1100) Subject: Don't promote bindings unwrap failure to GSS_S_BAD_BINDINGS X-Git-Tag: dvd/201105~12^2~123 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=mech_eap.orig;a=commitdiff_plain;h=53cc1eab45ae64e510361af2050b56f3ad836951 Don't promote bindings unwrap failure to GSS_S_BAD_BINDINGS --- diff --git a/accept_sec_context.c b/accept_sec_context.c index 5da5ea6..9036c85 100644 --- a/accept_sec_context.c +++ b/accept_sec_context.c @@ -624,7 +624,7 @@ eapGssSmAcceptGssChannelBindings(OM_uint32 *minor, major = gssEapUnwrapOrVerifyMIC(minor, ctx, NULL, NULL, iov, 2, TOK_TYPE_WRAP); if (GSS_ERROR(major)) - return GSS_S_BAD_BINDINGS; + return major; if (chanBindings != GSS_C_NO_CHANNEL_BINDINGS && !bufferEqual(&iov[0].buffer, &chanBindings->application_data)) {