Skip to content

Commit

Permalink
Use BIO_CLOSE when importing PEM private key with OpenSSL
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 Aug 17, 2014
1 parent f7ea721 commit 200dda8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openssl.c
Expand Up @@ -871,7 +871,7 @@ static int load_certificate(struct openconnect_info *vpninfo)
vpninfo->cert, strerror(errno));
return -ENOENT;
}
b = BIO_new_fp(f, 0);
b = BIO_new_fp(f, BIO_CLOSE);
if (!b) {
fclose(f);
vpn_progress(vpninfo, PRG_ERR,
Expand Down

0 comments on commit 200dda8

Please sign in to comment.