Don't double free the write bio
authorMatt Caswell <matt@openssl.org>
Thu, 21 Jul 2016 09:28:24 +0000 (10:28 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 29 Jul 2016 13:09:57 +0000 (14:09 +0100)
commit8e3854ac88836df0ba862b1aba851dcd963c4ad2
tree89cb7904a4ad5c9b923cfa664402aec2ac33481a
parent7fb4c82035d05ca8735303caa9941aeead165b78
Don't double free the write bio

When setting the read bio we free up any old existing one. However this can
lead to a double free if the existing one is the same as the write bio.

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