]> git.ipfire.org Git - thirdparty/hostap.git/commit
EAP-pwd: Fix processing of group setup failure
authorJouni Malinen <j@w1.fi>
Sun, 11 May 2014 15:38:07 +0000 (18:38 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 11 May 2014 18:24:05 +0000 (21:24 +0300)
commit0f73c642cc802f02336945cb20f2703efc54fb36
treecc64ab970a3f37f3cf03480131f7e30300a85267
parentcb4ac38b15efdbdadaf21047f29cf4de177b65f3
EAP-pwd: Fix processing of group setup failure

If invalid group was negotiated, compute_password_element() left some of
the data->grp pointer uninitialized and this could result in
segmentation fault when deinitializing the EAP method. Fix this by
explicitly clearing all the pointer with eap_zalloc(). In addition,
speed up EAP failure reporting in this type of error case by indicating
that the EAP method execution cannot continue anymore on the peer side
instead of waiting for a timeout.

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