]> 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)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 13 Dec 2018 21:26:18 +0000 (21:26 +0000)
servers/slapd/overlays/accesslog.c

index e02cf7551edd8cd3d408a34ca5514e66bf63de87..ca8356847a835b441e13cc581a8f07a37c2fd7fe 100644 (file)
@@ -1665,7 +1665,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++;
                        }