mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Don't implicitly inherit the default SSL_CTX, tls.c:alloc_handle will
set it explicitly and handle its refcount.
This commit is contained in:
parent
7a5d12cc51
commit
056b193ed7
@ -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 &&
|
||||
|
Loading…
Reference in New Issue
Block a user