Skip to content

Commit e74b5d2

Browse files
committed
tls_wrap: fix BIO leak on SSL error
Fix: #1075 PR-URL: #1244 Reviewed-By: Ben Noordhuis <[email protected]>
1 parent 2db758c commit e74b5d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tls_wrap.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ Local<Value> TLSWrap::GetSSLError(int status, int* err, const char** msg) {
374374
buf[mem->length] = '\0';
375375
*msg = buf;
376376
}
377-
static_cast<void>(BIO_reset(bio));
377+
BIO_free_all(bio);
378378

379379
return scope.Escape(exception);
380380
}

0 commit comments

Comments
 (0)