]> git.sur5r.net Git - openldap/commitdiff
If the change set becomes empty, prevent other overlays from executing and
authorQuanah Gibson-Mount <quanah@openldap.org>
Tue, 28 Apr 2009 02:51:12 +0000 (02:51 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Tue, 28 Apr 2009 02:51:12 +0000 (02:51 +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);
        }