From: Howard Chu Date: Thu, 9 Nov 2006 23:00:38 +0000 (+0000) Subject: ITS#4726 call ldap_pvt_tls_init() in init_ctx() to make sure initialization X-Git-Tag: OPENLDAP_REL_ENG_2_4_4ALPHA~8^2~491 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8e48a3c3178e7ba17305a8553602b49be0c25f24;p=openldap ITS#4726 call ldap_pvt_tls_init() in init_ctx() to make sure initialization is done --- diff --git a/libraries/libldap/tls.c b/libraries/libldap/tls.c index 49cd184595..283e0e56d9 100644 --- a/libraries/libldap/tls.c +++ b/libraries/libldap/tls.c @@ -215,6 +215,8 @@ ldap_int_tls_init_ctx( struct ldapoptions *lo, int is_server ) if ( lo->ldo_tls_ctx ) return 0; + ldap_pvt_tls_init(); + if ( is_server && !certfile && !keyfile && !cacertfile && !cacertdir ) { /* minimum configuration not provided */ return LDAP_NOT_SUPPORTED;