]> git.ipfire.org Git - thirdparty/hostap.git/commit
SAE: Fix memory leak in random number generation
authorJouni Malinen <j@w1.fi>
Sat, 31 May 2014 19:24:31 +0000 (22:24 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 31 May 2014 19:24:31 +0000 (22:24 +0300)
commit13c330385ab5fbc566c75207b1c2b1b36a25de0a
treec4647c7e38131d588eda40a815b3ce2e6a3d0d93
parentde93da914fb18976b32f9b189e22f0aface0646b
SAE: Fix memory leak in random number generation

If the randomly generated bignum does not meet the validation steps, the
iteration loop in sae_get_rand() did not free the data properly. Fix the
memory leak by freeing the temporary bignum before starting the next
attempt at generating the value.

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