projects
/
mech_eap.orig
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't check IS_RADIUS_ERROR() unless --enable-acceptor=yes.
[mech_eap.orig]
/
mech_eap
/
util_sm.c
diff --git
a/mech_eap/util_sm.c
b/mech_eap/util_sm.c
index
ca69923
..
bf216dd
100644
(file)
--- 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.
*/
* 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;
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;
}
/* Don't return non-wire error codes */
return GSS_S_COMPLETE;
}