lload_libevent_init can fail and wants to log

This commit is contained in:
Ondřej Kuzník 2017-09-22 11:27:36 +01:00 committed by Ondřej Kuzník
parent 8d93e0baa0
commit d22db36cea

View file

@ -383,8 +383,6 @@ main( int argc, char **argv )
slap_sl_mem_init();
(void)lload_libevent_init();
serverName = lutil_progname( "lloadd", argc, argv );
#ifdef HAVE_NT_SERVICE_MANAGER
@ -632,6 +630,10 @@ unhandled_option:;
Debug( LDAP_DEBUG_ANY, "%s", Versionstr );
if ( lload_libevent_init() ) {
goto stop;
}
global_host = ldap_pvt_get_fqdn( NULL );
if ( check == CHECK_NONE && slapd_daemon_init( urls ) != 0 ) {