]> git.ipfire.org Git - thirdparty/hostap.git/commit
Add extra validation of EAP header length field
authorJouni Malinen <j@w1.fi>
Tue, 7 Aug 2012 20:03:25 +0000 (23:03 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 7 Aug 2012 20:03:25 +0000 (23:03 +0300)
commitf54eb34995becf28e3c4b1b81ad6ce3390add51f
tree55d1ee1f173c2fe8ba9c169954a02191da3f2d1a
parentbf0d9ae40f94836e9c215dc706c6b359dd2dc5f5
Add extra validation of EAP header length field

These validation steps are already done in the EAP parsing code and in
the EAP methods, but the additional check is defensive programming and
can make the validation of received EAP messages more easier to
understand.

Signed-hostap: Jouni Malinen <j@w1.fi>
src/eap_common/eap_common.c
src/eap_common/eap_common.h
src/eap_peer/eap.c
src/eap_server/eap_server.c