From 1c95590e70d738775357b6bce85fa196632f7d55 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 12 Oct 2013 15:30:05 -0700 Subject: [PATCH] ITS#7692 no-op if target entry doesn't exist --- servers/slapd/overlays/constraint.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/servers/slapd/overlays/constraint.c b/servers/slapd/overlays/constraint.c index f2c645c609..62dec6be95 100644 --- a/servers/slapd/overlays/constraint.c +++ b/servers/slapd/overlays/constraint.c @@ -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) { -- 2.39.2