]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Skip ITS#6545 transition markers when we change mod op
authorOndřej Kuzník <ondra@openldap.org>
Thu, 18 Oct 2018 09:33:22 +0000 (10:33 +0100)
committerOndřej Kuzník <ondra@openldap.org>
Thu, 18 Oct 2018 09:41:43 +0000 (10:41 +0100)
servers/slapd/overlays/accesslog.c

index 2804b9289420baada57d607fbbbce4cf35cab50d..f230b0dbc852c60396493aee230e74165e1a32bf 100644 (file)
@@ -1668,7 +1668,8 @@ static int accesslog_response(Operation *op, SlapReply *rs) {
                        }
                        /* ITS#6545: when the same attribute is edited multiple times,
                         * record the transition */
-                       if ( m->sml_next && m->sml_desc == m->sml_next->sml_desc ) {
+                       if ( m->sml_next && m->sml_desc == m->sml_next->sml_desc &&
+                                       m->sml_op == m->sml_next->sml_op ) {
                                ber_str2bv( ":", STRLENOF(":"), 1, &vals[i] );
                                i++;
                        }