]> git.ipfire.org Git - thirdparty/hostap.git/commit - src/common/dpp.c
DPP: Fix a memory leak in PKEX Qi/Qr derivation
authorJouni Malinen <jouni@codeaurora.org>
Wed, 8 May 2019 16:59:21 +0000 (19:59 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 8 May 2019 16:59:21 +0000 (19:59 +0300)
commit1cdfe8d23f9feb9523daad286b473fe010105977
tree337a42d391bfc5e08748e3b31de55d64aba11312
parent51dc146f3e0f49e1e0f91339e92e901ff652a30f
DPP: Fix a memory leak in PKEX Qi/Qr derivation

The result of EC_GROUP_dup() needs to be freed, so do so within the
derivation functions for all error cases and in the callers for success
cases.

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