]> granicus.if.org Git - openssl/commit
Fix memory leaks in BIO_dup_chain()
authorMatt Caswell <matt@openssl.org>
Thu, 30 Apr 2015 13:51:10 +0000 (14:51 +0100)
committerMatt Caswell <matt@openssl.org>
Wed, 10 Jun 2015 09:24:49 +0000 (10:24 +0100)
commitb3c02473f7a22b19cbf86d5012d05a9d6a2c5f4d
treedaf30a63ee82cb163b50c71ef02d556ba3ef1e89
parent23cd01ef61ff9110850ee75c42ccb365ddc8a6ab
Fix memory leaks in BIO_dup_chain()

This fixes a memory leak that can occur whilst duplicating a BIO chain if
the call to CRYPTO_dup_ex_data() fails. It also fixes a second memory leak
where if a failure occurs after successfully creating the first BIO in the
chain, then the beginning of the new chain was not freed.

With thanks to the Open Crypto Audit Project for reporting this issue.

Reviewed-by: Stephen Henson <steve@openssl.org>
Conflicts:
crypto/bio/bio_lib.c
crypto/bio/bio_lib.c