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:
parent
bae282e3e8
commit
5a052f92eb
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue