]> git.ipfire.org Git - thirdparty/hostap.git/commit
EAP-TNC: Limit maximum message buffer to 75000 bytes (CID 62873)
authorJouni Malinen <j@w1.fi>
Fri, 13 Jun 2014 13:03:45 +0000 (16:03 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 13 Jun 2014 13:03:45 +0000 (16:03 +0300)
commit6590b6400f73762fc6a53ad6ca05a73246cc5e54
tree473593cb64357fe84d21910529b272c3397d9131
parente862968d18237a97892c836cbe894be2fea7cc6e
EAP-TNC: Limit maximum message buffer to 75000 bytes (CID 62873)

Since there is a limit on the EAP exchange due to maximum number of
roundtrips, there is no point in allowing excessively large buffers to
be allocated based on what the peer device claims the total message to
be. Instead, reject the message if it would not be possible to receive
it in full anyway.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/eap_peer/eap_tnc.c
src/eap_server/eap_server_tnc.c