commit | 301dfa94d6465244d5970e2abdc0650b386468d5 | [log] [tgz] |
---|---|---|
author | Roger Meier <roger@apache.org> | Sun Feb 02 23:56:19 2014 +0100 |
committer | Roger Meier <roger@apache.org> | Sun Feb 02 23:56:19 2014 +0100 |
tree | cf88a8903547ca88bfc73a8714e455370679dab0 | |
parent | d95fc9b1eedf77a42f072308d191f583c3052028 [diff] |
THRIFT-2225 cpp: SSLContext destroy before cleanupOpenSSL Patch: soyer
diff --git a/lib/cpp/src/thrift/transport/TSSLSocket.cpp b/lib/cpp/src/thrift/transport/TSSLSocket.cpp index 029c541..5f39f1c 100644 --- a/lib/cpp/src/thrift/transport/TSSLSocket.cpp +++ b/lib/cpp/src/thrift/transport/TSSLSocket.cpp
@@ -363,6 +363,7 @@ TSSLSocketFactory::~TSSLSocketFactory() { Guard guard(mutex_); + ctx_.reset(); count_--; if (count_ == 0) { cleanupOpenSSL();