From: Luke Howard Date: Sat, 7 Jun 2003 06:52:52 +0000 (+0000) Subject: Test error code from doPluginFNs() correctly X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~920 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=54392b6527fc2b8e11a26ccd88bc6d421e3e16b1;p=openldap Test error code from doPluginFNs() correctly --- diff --git a/servers/slapd/init.c b/servers/slapd/init.c index 1fd63e75da..dc9c308aea 100644 --- a/servers/slapd/init.c +++ b/servers/slapd/init.c @@ -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 */