]> git.sur5r.net Git - openldap/commitdiff
Fix some return codes
authorHoward Chu <hyc@openldap.org>
Mon, 25 Apr 2005 09:18:32 +0000 (09:18 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 25 Apr 2005 09:18:32 +0000 (09:18 +0000)
servers/slapd/bconfig.c
servers/slapd/config.c

index 0621f4ef7b74cbb0c764f8a68d540bf03004a60f..50e1b8214ea952a170e64b8ec6fece56a6010390 100644 (file)
@@ -3313,6 +3313,7 @@ config_modify_internal( CfEntryInfo *ce, Operation *op, SlapReply *rs,
                                        ca->valx = -1;
                                        ca->line = NULL;
                                        rc = config_del_vals( ct, ca );
+                                       if ( rc ) rc = LDAP_OTHER;
                                }
                                if ( ml->sml_values ) {
                                        ch_free( dels );
index 96d28a3e8b73dd51d9e72dc5d1706e28b286d61c..b91bf6bb40ef7c23d90b7d4179ade58ddb0f5433 100644 (file)
@@ -485,6 +485,8 @@ config_parse_vals(ConfigTable *ct, ConfigArgs *c, int valx)
        } else {
                rc = config_check_vals( ct, c, 1 );
        }
+       if ( rc )
+               rc = LDAP_CONSTRAINT_VIOLATION;
 
        ch_free( c->tline );
        return rc;