check return of ldap_pvt_tls_init() (which doesn't fail yet)

This commit is contained in:
Kurt Zeilenga 2000-09-21 21:30:02 +00:00
parent 8730b78ad3
commit d5860fb05c

View File

@ -351,10 +351,9 @@ int main( int argc, char **argv )
}
#ifdef HAVE_TLS
ldap_pvt_tls_init();
rc = ldap_pvt_tls_init();
if (ldap_pvt_tls_init_def_ctx() != 0)
{
if (rc || ldap_pvt_tls_init_def_ctx() != 0) {
rc = 1;
SERVICE_EXIT( ERROR_SERVICE_SPECIFIC_ERROR, 20 );
goto destroy;