]> git.sur5r.net Git - openldap/commitdiff
Test error code from doPluginFNs() correctly
authorLuke Howard <lukeh@openldap.org>
Sat, 7 Jun 2003 06:52:52 +0000 (06:52 +0000)
committerLuke Howard <lukeh@openldap.org>
Sat, 7 Jun 2003 06:52:52 +0000 (06:52 +0000)
servers/slapd/init.c

index 1fd63e75dac4073e28a46633343c94a2092d627b..dc9c308aea170840f1378dde94666efdee54d5ff 100644 (file)
@@ -149,7 +149,9 @@ slap_init( int mode, const char *name )
                        if( rc == 0 ) {
                                Slapi_PBlock *pb = slapi_pblock_new();
 
-                               rc = doPluginFNs( NULL, SLAPI_PLUGIN_START_FN, pb );
+                               if ( doPluginFNs( NULL, SLAPI_PLUGIN_START_FN, pb ) < 0 ) {
+                                       rc = -1;
+                               }
                                slapi_pblock_destroy( pb );
                        }
 #endif /* LDAP_SLAPI */