]> git.sur5r.net Git - openldap/commitdiff
If the change set becomes empty, prevent other overlays from executing and
authorEmmanuel Dreyfus <manu@openldap.org>
Mon, 16 Mar 2009 22:05:47 +0000 (22:05 +0000)
committerEmmanuel Dreyfus <manu@openldap.org>
Mon, 16 Mar 2009 22:05:47 +0000 (22:05 +0000)
return a success.

contrib/slapd-modules/nops/nops.c

index ea29ecdc8b0baee068f89f1bc466ae89d302b652..1fb1d34170f6db583a93ab2a89abd5fdde261509 100644 (file)
@@ -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);
        }