DPP: Fix a memory leak in L derivation

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>
This commit is contained in:
Ankita Bajaj 2018-08-27 13:01:13 +05:30 committed by Jouni Malinen
parent bae282e3e8
commit 5a052f92eb

View 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);