]> git.ipfire.org Git - thirdparty/openvpn.git/commit
openssl: fix EVP_PKEY_CTX memory leak
authorAntonio Quartulli <antonio@openvpn.net>
Mon, 5 Apr 2021 08:00:05 +0000 (10:00 +0200)
committerGert Doering <gert@greenie.muc.de>
Mon, 5 Apr 2021 10:32:35 +0000 (12:32 +0200)
commit24e58164b845614c2176bc6b2a939856fd830c53
tree821038ec0074e783bb79a8c02e315f702cf9aa4e
parent165cda3169a860186e0446927e80986c31a837ca
openssl: fix EVP_PKEY_CTX memory leak

A context allocated with EVP_PKEY_CTX_new_id() must be ultimately free'd
by Eng VP_PKEY_CTX_free(). Failing to do so will result in a memory leak.

This bug was discovered using GCC with "-fsanitize=address".

Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20210405080007.1665-1-a@unstable.cc>
URL: https://www.mail-archive.com/search?l=mid&q=20210405080007.1665-1-a@unstable.cc
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/crypto_openssl.c