3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-30 06:02:39 +01:00

eap-tls: Fix msg size miscalculation

This commit is contained in:
Tim Kourt 2016-11-03 16:04:21 -07:00 committed by Denis Kenzior
parent 2148d71264
commit b6745000b5

View File

@ -335,7 +335,7 @@ static void eap_tls_handle_request(struct eap_state *eap,
* response instead of passing the TLS alert.
*/
if (tls->tx_pkt_len <= eap_get_mtu(eap)) {
if (tls->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.