mirror of
https://github.com/strongswan/strongswan.git
synced 2025-12-05 00:01:49 -05:00
Patch AVP parsing in EAP-TTLS module in FreeRADIUS
This commit is contained in:
parent
d47b751850
commit
ffe710ae71
@ -16,6 +16,7 @@ CONFIG_OPTS = \
|
|||||||
|
|
||||||
PATCHES = \
|
PATCHES = \
|
||||||
freeradius-eap-sim-identity \
|
freeradius-eap-sim-identity \
|
||||||
|
freeradius-avp-size \
|
||||||
freeradius-tnc-fhh
|
freeradius-tnc-fhh
|
||||||
|
|
||||||
all: install
|
all: install
|
||||||
|
|||||||
18
testing/scripts/recipes/patches/freeradius-avp-size
Normal file
18
testing/scripts/recipes/patches/freeradius-avp-size
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
diff --git a/src/modules/rlm_eap/types/rlm_eap_ttls/ttls.c b/src/modules/rlm_eap/types/rlm_eap_ttls/ttls.c
|
||||||
|
index 6c9bd13..3344c53 100644
|
||||||
|
--- a/src/modules/rlm_eap/types/rlm_eap_ttls/ttls.c
|
||||||
|
+++ b/src/modules/rlm_eap/types/rlm_eap_ttls/ttls.c
|
||||||
|
@@ -201,8 +201,11 @@ static VALUE_PAIR *diameter2vp(REQUEST *request, SSL *ssl,
|
||||||
|
goto next_attr;
|
||||||
|
}
|
||||||
|
|
||||||
|
- if (size > 253) {
|
||||||
|
- RDEBUG2("WARNING: diameter2vp skipping long attribute %u, attr");
|
||||||
|
+ /*
|
||||||
|
+ * EAP-Message AVPs can be larger than 253 octets.
|
||||||
|
+ */
|
||||||
|
+ if ((size > 253) && !((VENDOR(attr) == 0) && (attr == PW_EAP_MESSAGE))) {
|
||||||
|
+ RDEBUG2("WARNING: diameter2vp skipping long attribute %u", attr);
|
||||||
|
goto next_attr;
|
||||||
|
}
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user