Fix some return codes

This commit is contained in:
Howard Chu 2005-04-25 09:18:32 +00:00
parent be99e9e758
commit 0ec5e2df77
2 changed files with 3 additions and 0 deletions

View 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 );

View 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;