From: Emmanuel Dreyfus Date: Mon, 16 Mar 2009 22:05:47 +0000 (+0000) Subject: If the change set becomes empty, prevent other overlays from executing and X-Git-Tag: ACLCHECK_0~679 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b697550ddc1cd8301d1f5e3c5a524b86c8616aa0;p=openldap If the change set becomes empty, prevent other overlays from executing and return a success. --- 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); }