]> git.sur5r.net Git - openldap/commitdiff
error out if modify_delete_vindex() fails (ITS#5343)
authorRalf Haferkamp <ralf@openldap.org>
Wed, 30 Jan 2008 14:45:35 +0000 (14:45 +0000)
committerRalf Haferkamp <ralf@openldap.org>
Wed, 30 Jan 2008 14:45:35 +0000 (14:45 +0000)
servers/slapd/bconfig.c

index 457bcfd3f62a17a44860d4fb9dff23aa4101e880..7a15d421778339aba2a1cb31805f639bdeeb15d6 100644 (file)
@@ -4705,6 +4705,7 @@ config_modify_internal( CfEntryInfo *ce, Operation *op, SlapReply *rs,
                        rc = modify_delete_vindex(e, &ml->sml_mod,
                                get_permissiveModify(op),
                                &rs->sr_text, ca->cr_msg, sizeof(ca->cr_msg), idx );
+                       if ( rc ) goto out_noop;
                        if ( ml->sml_op == LDAP_MOD_REPLACE ) {
                                ml->sml_values = vals;
                                ml->sml_nvalues = nvals;