Repository: trafficserver Updated Branches: refs/heads/master dfd4d2928 -> 0924e5d72
[TS-3261]: remove redundant BIO_free() for new SSL object, per Leif's suggestion Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/0924e5d7 Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/0924e5d7 Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/0924e5d7 Branch: refs/heads/master Commit: 0924e5d721681d77d769a6fe8a5228fcf70bfe91 Parents: dfd4d29 Author: Sudheer Vinukonda <[email protected]> Authored: Sun Dec 28 18:02:18 2014 +0000 Committer: Sudheer Vinukonda <[email protected]> Committed: Sun Dec 28 18:02:18 2014 +0000 ---------------------------------------------------------------------- iocore/net/SSLNetVConnection.cc | 8 -------- 1 file changed, 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/0924e5d7/iocore/net/SSLNetVConnection.cc ---------------------------------------------------------------------- diff --git a/iocore/net/SSLNetVConnection.cc b/iocore/net/SSLNetVConnection.cc index a40c8a8..1c63002 100644 --- a/iocore/net/SSLNetVConnection.cc +++ b/iocore/net/SSLNetVConnection.cc @@ -143,14 +143,6 @@ make_ssl_connection(SSL_CTX * ctx, SSLNetVConnection * netvc) BIO *rbio = BIO_new(BIO_s_mem()); BIO *wbio = BIO_new_fd(netvc->get_socket(), BIO_NOCLOSE); BIO_set_mem_eof_return(wbio, -1); - BIO* old_rbio = SSL_get_rbio(ssl); - BIO* old_wbio = SSL_get_wbio(ssl); - if (old_rbio) { - BIO_free(old_rbio); - } - if (old_wbio) { - BIO_free(old_wbio); - } SSL_set_bio(ssl, rbio, wbio); }
