]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DPP: Fix a memory leak in L derivation
authorAnkita Bajaj <bankita@codeaurora.org>
Mon, 27 Aug 2018 07:31:13 +0000 (13:01 +0530)
committerJouni Malinen <j@w1.fi>
Fri, 21 Sep 2018 18:21:14 +0000 (21:21 +0300)
The temporary EC_POINT 'sum' needs to be freed at the end of the
function with the other OpenSSL allocations.

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

index f48df43a7765269cd4ee7b626f2397e3f586e37a..099219c66b41dcf5d1ff36ad7857e76c99eb83cc 100644 (file)
@@ -2602,6 +2602,7 @@ static int dpp_auth_derive_l_initiator(struct dpp_authentication *auth)
        ret = 0;
 fail:
        EC_POINT_clear_free(l);
+       EC_POINT_clear_free(sum);
        EC_KEY_free(bI);
        EC_KEY_free(BR);
        EC_KEY_free(PR);