ITS#4726 call ldap_pvt_tls_init() in init_ctx() to make sure initialization

is done
This commit is contained in:
Howard Chu 2006-11-09 23:00:38 +00:00
parent 6078dbef3c
commit 8e48a3c317

View 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;