aboutsummaryrefslogtreecommitdiff
path: root/src/tls_wrap.cc
diff options
context:
space:
mode:
authorFedor Indutny <fedor@indutny.com>2015-03-23 20:07:03 -0700
committerFedor Indutny <fedor@indutny.com>2015-03-25 17:50:50 -0500
commite74b5d278ca94bf27d16b3fb94cedf4c6fcac3ac (patch)
treeb2ee58baa46f9f29810195e6a5123326727ffd3b /src/tls_wrap.cc
parent2db758c562b4e480acc2d1a654e2c471a653a039 (diff)
downloadandroid-node-v8-e74b5d278ca94bf27d16b3fb94cedf4c6fcac3ac.tar.gz
android-node-v8-e74b5d278ca94bf27d16b3fb94cedf4c6fcac3ac.tar.bz2
android-node-v8-e74b5d278ca94bf27d16b3fb94cedf4c6fcac3ac.zip
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.cc2
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);
}