From: Ralf Haferkamp Date: Fri, 1 Apr 2011 08:06:05 +0000 (+0200) Subject: renew SSL context when setting global Options X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;ds=sidebyside;h=36ba454bb662722c8455942dd73d7607b1a89262;p=openldap renew SSL context when setting global Options --- diff --git a/contrib/ldapc++/src/TlsOptions.cpp b/contrib/ldapc++/src/TlsOptions.cpp index 2246e3a39c..eda6f455c9 100644 --- a/contrib/ldapc++/src/TlsOptions.cpp +++ b/contrib/ldapc++/src/TlsOptions.cpp @@ -72,9 +72,7 @@ void TlsOptions::setOption( tls_option opt, void *value ) const { throw( LDAPException( LDAP_PARAM_ERROR, "error while setting TLS option" ) ); } } - if ( m_ld ){ - this->newCtx(); - } + this->newCtx(); } void TlsOptions::getOption( tls_option opt, void* value ) const {