]> git.ipfire.org Git - thirdparty/hostap.git/commit
WPS: Fix use of pre-configured DH keys with multiple operations
authorJouni Malinen <j@w1.fi>
Mon, 1 Apr 2013 16:30:34 +0000 (19:30 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 1 Apr 2013 16:30:34 +0000 (19:30 +0300)
commit49e160a58dbb043a539c212b54146a9775555289
tree5f6ca7a5c7beb8e48ba28246f175cd75989743ec
parent5c9d63d46fa75d2bf1c7f25ecaa44be9f5ecbd26
WPS: Fix use of pre-configured DH keys with multiple operations

wps_build_public_key() takes the dh_ctx into use and another attempt to
use the same DH keys fails with wps->dh_ctx being set to NULL. Avoid
this by using the DH parameters only if dh_ctx is valid. This fixes
cases where a use of local pre-configured DH keys followed by an
operating using peer DH keys would faild due to unexpected attempt to
use local keys again.

Signed-hostap: Jouni Malinen <j@w1.fi>
src/wps/wps_attr_build.c