File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -939,9 +939,9 @@ void TLSWrap::EnableTrace(
939
939
940
940
#if HAVE_SSL_TRACE
941
941
if (wrap->ssl_ ) {
942
- BIO* b = BIO_new_fp (stderr, BIO_NOCLOSE | BIO_FP_TEXT);
942
+ wrap-> bio_trace_ . reset ( BIO_new_fp (stderr, BIO_NOCLOSE | BIO_FP_TEXT) );
943
943
SSL_set_msg_callback (wrap->ssl_ .get (), SSL_trace);
944
- SSL_set_msg_callback_arg (wrap->ssl_ .get (), b );
944
+ SSL_set_msg_callback_arg (wrap->ssl_ .get (), wrap-> bio_trace_ . get () );
945
945
}
946
946
#endif
947
947
}
Original file line number Diff line number Diff line change @@ -193,6 +193,8 @@ class TLSWrap : public AsyncWrap,
193
193
private:
194
194
static void GetWriteQueueSize (
195
195
const v8::FunctionCallbackInfo<v8::Value>& info);
196
+
197
+ crypto::BIOPointer bio_trace_;
196
198
};
197
199
198
200
} // namespace node
You can’t perform that action at this time.
0 commit comments