]> git.sur5r.net Git - openldap/commitdiff
doPlugins return code fix
authorHoward Chu <hyc@openldap.org>
Mon, 14 Apr 2003 10:30:10 +0000 (10:30 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 14 Apr 2003 10:30:10 +0000 (10:30 +0000)
servers/slapd/delete.c

index 2858abdc17aa508e7e64e83a085e229441be3c7f..db30af78b92a8bc0f93d652ad0c0a48265dac1f7 100644 (file)
@@ -156,7 +156,7 @@ do_delete(
        slapi_pblock_set( pb, SLAPI_MANAGEDSAIT, (void *)manageDSAit );
 
        rs->sr_err = doPluginFNs( op->o_bd, SLAPI_PLUGIN_PRE_DELETE_FN, pb );
-       if ( rs->sr_err != 0 ) {
+       if ( rs->sr_err < 0 ) {
                /*
                 * A preoperation plugin failure will abort the
                 * entire operation.
@@ -216,7 +216,7 @@ do_delete(
        }
 
 #if defined( LDAP_SLAPI )
-       if ( doPluginFNs( op->o_bd, SLAPI_PLUGIN_POST_DELETE_FN, pb ) != 0) {
+       if ( doPluginFNs( op->o_bd, SLAPI_PLUGIN_POST_DELETE_FN, pb ) < 0) {
 #ifdef NEW_LOGGING
                LDAP_LOG( OPERATION, INFO, "do_delete: delete postoperation plugins "
                                "failed\n", 0, 0, 0 );