From fe90dcaab4244d5c70956e77632e63f7f39a7a1c Mon Sep 17 00:00:00 2001 From: Tim Kourt Date: Mon, 7 Nov 2016 13:55:17 -0800 Subject: [PATCH] eap-ttls: Fix msg size miscalculation --- src/eap-ttls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/eap-ttls.c b/src/eap-ttls.c index badba0e6..900b67fa 100644 --- a/src/eap-ttls.c +++ b/src/eap-ttls.c @@ -590,7 +590,7 @@ static void eap_ttls_handle_request(struct eap_state *eap, * response instead of passing the TLS alert. */ - if (ttls->tx_pkt_len <= eap_get_mtu(eap)) { + if (ttls->tx_pkt_len + 6 <= eap_get_mtu(eap)) { /* * Response fits in a single response packet, prepend the * 6-byte header (no length) before the data.