mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Add some addl. logging
This commit is contained in:
parent
f35545b058
commit
b22ad8cf60
@ -399,8 +399,30 @@ int main( int argc, char **argv )
|
||||
|
||||
#ifdef HAVE_TLS
|
||||
rc = ldap_pvt_tls_init();
|
||||
if( rc != 0) {
|
||||
#ifdef NEW_LOGGING
|
||||
LDAP_LOG(( "operation", LDAP_LEVEL_CRIT,
|
||||
"main: tls init failed: %d\n", rc ));
|
||||
#else
|
||||
Debug( LDAP_DEBUG_ANY,
|
||||
"main: TLS init failed: %d\n",
|
||||
0, 0, 0 );
|
||||
#endif
|
||||
rc = 1;
|
||||
SERVICE_EXIT( ERROR_SERVICE_SPECIFIC_ERROR, 20 );
|
||||
goto destroy;
|
||||
}
|
||||
|
||||
if (rc || ldap_pvt_tls_init_def_ctx() != 0) {
|
||||
rc = ldap_pvt_tls_init_def_ctx();
|
||||
if( rc != 0) {
|
||||
#ifdef NEW_LOGGING
|
||||
LDAP_LOG(( "operation", LDAP_LEVEL_CRIT,
|
||||
"main: tls init def ctx failed: %d\n", rc ));
|
||||
#else
|
||||
Debug( LDAP_DEBUG_ANY,
|
||||
"main: TLS init def ctx failed: %d\n",
|
||||
0, 0, 0 );
|
||||
#endif
|
||||
rc = 1;
|
||||
SERVICE_EXIT( ERROR_SERVICE_SPECIFIC_ERROR, 20 );
|
||||
goto destroy;
|
||||
|
Loading…
Reference in New Issue
Block a user