From: Roger Meier Date: Sun, 2 Feb 2014 22:56:19 +0000 (+0100) Subject: THRIFT-2225 cpp: SSLContext destroy before cleanupOpenSSL X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=301dfa94d6465244d5970e2abdc0650b386468d5;p=common%2Fthrift.git 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 029c541b..5f39f1c4 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();