blob: e7e1f635baf9d4c9a0517e2342f724e0d968d900 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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;
}
|