Commit 06137d45 authored by David Woodhouse's avatar David Woodhouse

OpenSSL: Free BIO leak in reload_pem_cert()

Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 0a9919b5
...@@ -588,6 +588,7 @@ static int reload_pem_cert(struct openconnect_info *vpninfo) ...@@ -588,6 +588,7 @@ static int reload_pem_cert(struct openconnect_info *vpninfo)
return -EIO; return -EIO;
} }
vpninfo->cert_x509 = PEM_read_bio_X509_AUX(b, NULL, NULL, NULL); vpninfo->cert_x509 = PEM_read_bio_X509_AUX(b, NULL, NULL, NULL);
BIO_free(b);
if (!vpninfo->cert_x509) if (!vpninfo->cert_x509)
goto err; goto err;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment