diff options
author | Fedor Indutny <fedor@indutny.com> | 2015-03-23 20:07:03 -0700 |
---|---|---|
committer | Fedor Indutny <fedor@indutny.com> | 2015-03-25 17:50:50 -0500 |
commit | e74b5d278ca94bf27d16b3fb94cedf4c6fcac3ac (patch) | |
tree | b2ee58baa46f9f29810195e6a5123326727ffd3b /src/tls_wrap.cc | |
parent | 2db758c562b4e480acc2d1a654e2c471a653a039 (diff) | |
download | node-new-e74b5d278ca94bf27d16b3fb94cedf4c6fcac3ac.tar.gz |
tls_wrap: fix BIO leak on SSL error
Fix: https://github.com/iojs/io.js/issues/1075
PR-URL: https://github.com/iojs/io.js/pull/1244
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'src/tls_wrap.cc')
-rw-r--r-- | src/tls_wrap.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tls_wrap.cc b/src/tls_wrap.cc index 13ba550398..b6b87b30ca 100644 --- a/src/tls_wrap.cc +++ b/src/tls_wrap.cc @@ -374,7 +374,7 @@ Local<Value> TLSWrap::GetSSLError(int status, int* err, const char** msg) { buf[mem->length] = '\0'; *msg = buf; } - static_cast<void>(BIO_reset(bio)); + BIO_free_all(bio); return scope.Escape(exception); } |