From: Howard Chu Date: Fri, 7 Apr 2006 01:52:32 +0000 (+0000) Subject: Don't implicitly inherit the default SSL_CTX, tls.c:alloc_handle will X-Git-Tag: OPENLDAP_REL_ENG_2_4_0ALPHA~17 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=056b193ed7a231561b4df365a4239328833738bf;p=openldap Don't implicitly inherit the default SSL_CTX, tls.c:alloc_handle will set it explicitly and handle its refcount. --- diff --git a/libraries/libldap/open.c b/libraries/libldap/open.c index 35ef7ad876..d1eaf04b2a 100644 --- a/libraries/libldap/open.c +++ b/libraries/libldap/open.c @@ -137,12 +137,12 @@ ldap_create( LDAP **ldp ) #endif #ifdef HAVE_TLS - /* We inherit the SSL_CTX, don't need the names/paths. Leave them - * empty to allow new SSL_CTX's to be created from scratch. + /* We explicitly inherit the SSL_CTX, don't need the names/paths. Leave + * them empty to allow new SSL_CTX's to be created from scratch. */ memset( &ld->ld_options.ldo_tls_info, 0, sizeof( ld->ld_options.ldo_tls_info )); - + ld->ld_options.ldo_tls_ctx = NULL; #endif if ( gopts->ldo_tm_api &&