From b697550ddc1cd8301d1f5e3c5a524b86c8616aa0 Mon Sep 17 00:00:00 2001 From: Emmanuel Dreyfus Date: Mon, 16 Mar 2009 22:05:47 +0000 Subject: [PATCH] If the change set becomes empty, prevent other overlays from executing and return a success. --- contrib/slapd-modules/nops/nops.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/contrib/slapd-modules/nops/nops.c b/contrib/slapd-modules/nops/nops.c index ea29ecdc8b..1fb1d34170 100644 --- a/contrib/slapd-modules/nops/nops.c +++ b/contrib/slapd-modules/nops/nops.c @@ -136,8 +136,13 @@ nops_modify( Operation *op, SlapReply *rs ) } if ((m = op->orm_modlist) == NULL) { + slap_callback *cb = op->o_callback; + op->o_bd->bd_info = (BackendInfo *)(on->on_info); - send_ldap_error(op, rs, LDAP_SUCCESS, ""); + op->o_callback = NULL; + send_ldap_error(op, rs, LDAP_SUCCESS, ""); + op->o_callback = cb; + return (rs->sr_err); } -- 2.39.5