]> git.sur5r.net Git - openldap/commitdiff
ITS#7692 no-op if target entry doesn't exist
authorHoward Chu <hyc@openldap.org>
Sat, 12 Oct 2013 22:30:05 +0000 (15:30 -0700)
committerHoward Chu <hyc@openldap.org>
Sat, 12 Oct 2013 22:35:05 +0000 (15:35 -0700)
servers/slapd/overlays/constraint.c

index f2c645c609c04f4fc6c6040ca47b65ae2517da4d..62dec6be955a8213081b0aa825fa9d5938b98548 100644 (file)
@@ -933,6 +933,10 @@ constraint_update( Operation *op, SlapReply *rs )
        rc = be_entry_get_rw( op, &op->o_req_ndn, NULL, NULL, 0, &target_entry );
        op->o_bd = be;
 
+       /* let the backend send the error */
+       if ( target_entry == NULL )
+               return SLAP_CB_CONTINUE;
+
        /* Do we need to count attributes? */
        for(cp = c; cp; cp = cp->ap_next) {
                if (cp->count != 0) {