]> git.sur5r.net Git - openldap/blobdiff - contrib/ldapc++/src/TlsOptions.cpp
Merge remote branch 'origin/mdb.master'
[openldap] / contrib / ldapc++ / src / TlsOptions.cpp
index 2246e3a39ceb54b8c42fcef613288d3ed1199fd9..5d936e9400fd5b87a67b3205ca0bb6f8a0e130d8 100644 (file)
@@ -1,6 +1,6 @@
 // $OpenLDAP$
 /*
- * Copyright 2010-2011 The OpenLDAP Foundation, All Rights Reserved.
+ * Copyright 2010-2012 The OpenLDAP Foundation, All Rights Reserved.
  * COPYING RESTRICTIONS APPLY, see COPYRIGHT 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 {