X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=mech_eap%2Futil_sm.c;h=bf216dd0045ff71607504f4c94203bb38d1ec4a7;hb=e9b3bd71ca97dfcf9a161a609bb0877fada72af6;hp=ca699233ae7aff6e5d5b92d320636b893a4dde3b;hpb=385176f5c476bb335fdc4318f420329ba89425f3;p=mech_eap.orig diff --git a/mech_eap/util_sm.c b/mech_eap/util_sm.c index ca69923..bf216dd 100644 --- a/mech_eap/util_sm.c +++ b/mech_eap/util_sm.c @@ -114,10 +114,13 @@ makeErrorToken(OM_uint32 *minor, * Only return error codes that the initiator could have caused, * to avoid information leakage. */ +#ifdef GSSEAP_ENABLE_ACCEPTOR if (IS_RADIUS_ERROR(minorStatus)) { /* Squash RADIUS error codes */ minorStatus = GSSEAP_RADIUS_PROT_FAILURE; - } else if (!IS_WIRE_ERROR(minorStatus)) { + } else +#endif + if (!IS_WIRE_ERROR(minorStatus)) { /* Don't return non-wire error codes */ return GSS_S_COMPLETE; }