]> git.ipfire.org Git - thirdparty/hostap.git/commit
DPP2: Fix a memory leak on error path for Config Result
authorJouni Malinen <jouni@codeaurora.org>
Sun, 15 Sep 2019 13:19:45 +0000 (16:19 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 15 Sep 2019 13:30:40 +0000 (16:30 +0300)
commit3a6736fe87ae8d144b92d8b8706fac8a0ee2eae5
tree72583de4b055a8eb89dd049a385dae3208e4b8ca
parent21dc1627f6e6b26986a70e81ffb5f08132656b09
DPP2: Fix a memory leak on error path for Config Result

If only one of the allocations fails, the successful allocation needs to
be freed on the error path.

Fixes: 22f90b32f14e ("DPP2: Configuration Result message generation and processing")
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/common/dpp.c