]> git.ipfire.org Git - thirdparty/hostap.git/commit
EAP-EKE: Reject too long Prot() data when building a frame
authorJouni Malinen <j@w1.fi>
Mon, 21 Dec 2015 22:03:44 +0000 (00:03 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 21 Dec 2015 22:10:22 +0000 (00:10 +0200)
commit13cb0a66d5ac4d4cda6cd565781a440229e642f0
tree02a08a9460d7c45f3138e00fa5fa0e97ecef8e63
parent3b6f3b37b8b9798c811acb77d35b335965684061
EAP-EKE: Reject too long Prot() data when building a frame

This error case in own buffer lengths being too short was not handled
properly. While this should not really happen since the wpabuf
allocation is made large for the fixed cases that are currently
supported, better make eap_eke_prot() safer if this functionally ever
gets extended with a longer buffer need.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/eap_common/eap_eke_common.c