You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by ro...@apache.org on 2014/02/02 23:57:05 UTC

git commit: THRIFT-2225 cpp: SSLContext destroy before cleanupOpenSSL Patch: soyer

Updated Branches:
  refs/heads/master d95fc9b1e -> 301dfa94d


THRIFT-2225 cpp: SSLContext destroy before cleanupOpenSSL
Patch: soyer


Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/301dfa94
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/301dfa94
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/301dfa94

Branch: refs/heads/master
Commit: 301dfa94d6465244d5970e2abdc0650b386468d5
Parents: d95fc9b
Author: Roger Meier <ro...@apache.org>
Authored: Sun Feb 2 23:56:19 2014 +0100
Committer: Roger Meier <ro...@apache.org>
Committed: Sun Feb 2 23:56:19 2014 +0100

----------------------------------------------------------------------
 lib/cpp/src/thrift/transport/TSSLSocket.cpp | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/thrift/blob/301dfa94/lib/cpp/src/thrift/transport/TSSLSocket.cpp
----------------------------------------------------------------------
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(): server_(false) {
 
 TSSLSocketFactory::~TSSLSocketFactory() {
   Guard guard(mutex_);
+  ctx_.reset();
   count_--;
   if (count_ == 0) {
     cleanupOpenSSL();