Fix BIO_push ref counting for SSL BIO
authorMatt Caswell <matt@openssl.org>
Thu, 21 Jul 2016 09:48:12 +0000 (10:48 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 29 Jul 2016 13:09:57 +0000 (14:09 +0100)
commiteddef305897cd8e9facbc18ed93a4ec104ab1927
treee240696fe931e661afaa4afcc818c5b713afa140
parent8e3854ac88836df0ba862b1aba851dcd963c4ad2
Fix BIO_push ref counting for SSL BIO

When pushing a BIO onto an SSL BIO we set the rbio and wbio for the SSL
object to be the BIO that has been pushed. Therefore we need to up the ref
count for that BIO. The existing code was uping the ref count on the wrong
BIO.

Reviewed-by: Rich Salz <rsalz@openssl.org>
ssl/bio_ssl.c