]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
lload_libevent_init can fail and wants to log
authorOndřej Kuzník <ondra@mistotebe.net>
Fri, 22 Sep 2017 10:27:36 +0000 (11:27 +0100)
committerOndřej Kuzník <okuznik@symas.com>
Tue, 17 Nov 2020 17:55:46 +0000 (17:55 +0000)
servers/lloadd/main.c

index 3c3577ead54cf13b4cac348b4cc6addd6b14684d..a8cd784c18efec04c130d2b183f54d73290a7856 100644 (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 ) {