]> git.ipfire.org Git - thirdparty/hostap.git/commit
DPP: Fix memory leak in EC_GROUP handling
authorJouni Malinen <jouni@codeaurora.org>
Wed, 8 May 2019 15:32:29 +0000 (18:32 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 8 May 2019 15:32:29 +0000 (18:32 +0300)
commit57ec74ea9b9afb7d0f841cbd70955152251b4813
treee5ed0ab020efe4e68d2638b538f01b724cd2ddb9
parent7a9ddba6f524b49ae5c5f75000f504be572406a1
DPP: Fix memory leak in EC_GROUP handling

EC_GROUP_new_by_curve_name() allocates memory for the returned pointer,
so need to free this with EC_GROUP_free() before leaving the calling
functions. This was leaking memory when parsing JWK and when performing
PKEX.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/common/dpp.c