summaryrefslogtreecommitdiff
path: root/src/tls_wrap.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/tls_wrap.cc')
-rw-r--r--src/tls_wrap.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tls_wrap.cc b/src/tls_wrap.cc
index 69293ad906..2b0da3e3bc 100644
--- a/src/tls_wrap.cc
+++ b/src/tls_wrap.cc
@@ -939,9 +939,9 @@ void TLSWrap::EnableTrace(
#if HAVE_SSL_TRACE
if (wrap->ssl_) {
- BIO* b = BIO_new_fp(stderr, BIO_NOCLOSE | BIO_FP_TEXT);
+ wrap->bio_trace_.reset(BIO_new_fp(stderr, BIO_NOCLOSE | BIO_FP_TEXT));
SSL_set_msg_callback(wrap->ssl_.get(), SSL_trace);
- SSL_set_msg_callback_arg(wrap->ssl_.get(), b);
+ SSL_set_msg_callback_arg(wrap->ssl_.get(), wrap->bio_trace_.get());
}
#endif
}