Skip to content

Commit

Permalink
Add missing EVP_KDF_CTX_free in ssl_tls1_PRF
Browse files Browse the repository at this point in the history
This is just missing in the function. Found by clang+ASAN.

Change-Id: I5d70198f6adbee8add619ee8a0bd6b5b1f61e506
Signed-off-by: Arne Schwabe <[email protected]>
Acked-by: Frank Lichtenheld <[email protected]>
Message-Id: <[email protected]>
URL: https://www.mail-archive.com/[email protected]/msg28591.html
Signed-off-by: Gert Doering <[email protected]>
  • Loading branch information
schwabe authored and cron2 committed May 1, 2024
1 parent 32e6586 commit d4eb413
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/openvpn/crypto_openssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1372,6 +1372,7 @@ ssl_tls1_PRF(const uint8_t *seed, int seed_len, const uint8_t *secret,
err:
ret = false;
out:
EVP_KDF_CTX_free(kctx);
EVP_KDF_free(kdf);

return ret;
Expand Down

0 comments on commit d4eb413

Please sign in to comment.