]> git.sur5r.net Git - openldap/commitdiff
ITS#4726 call ldap_pvt_tls_init() in init_ctx() to make sure initialization
authorHoward Chu <hyc@openldap.org>
Thu, 9 Nov 2006 23:00:38 +0000 (23:00 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 9 Nov 2006 23:00:38 +0000 (23:00 +0000)
is done

libraries/libldap/tls.c

index 49cd1845959bc0a0972e4ebd128a3f6f30f5842e..283e0e56d97dfa3d97315f1bc16891843efe9395 100644 (file)
@@ -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;