Skip to content

Commit

Permalink
Fix double-free of BIO in loading cert from keystore
Browse files Browse the repository at this point in the history
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Jun 17, 2012
1 parent 6ed3525 commit 433f686
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion openssl.c
Expand Up @@ -712,7 +712,6 @@ static int load_certificate(struct openconnect_info *vpninfo)
vpn_progress(vpninfo, PRG_ERR,
_("Failed to load X509 certificate from keystore\n"));
openconnect_report_ssl_errors(vpninfo);
BIO_free(b);
return -EINVAL;
}
if (!SSL_CTX_use_certificate(vpninfo->https_ctx, vpninfo->cert_x509)) {
Expand Down

0 comments on commit 433f686

Please sign in to comment.