]> git.sur5r.net Git - openldap/commitdiff
renew SSL context when setting global Options
authorRalf Haferkamp <ralf@openldap.org>
Fri, 1 Apr 2011 08:06:05 +0000 (10:06 +0200)
committerRalf Haferkamp <ralf@openldap.org>
Fri, 1 Apr 2011 08:06:05 +0000 (10:06 +0200)
contrib/ldapc++/src/TlsOptions.cpp

index 2246e3a39ceb54b8c42fcef613288d3ed1199fd9..eda6f455c9a6f78dc7a2c9a680cc98e721cdf14f 100644 (file)
@@ -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 {