]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#4728 patch from HEAD
authorHoward Chu <hyc@openldap.org>
Thu, 2 Nov 2006 19:06:54 +0000 (19:06 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 2 Nov 2006 19:06:54 +0000 (19:06 +0000)
servers/slapd/overlays/accesslog.c

index d47ae1d47aaebe687ef62e3452d7d89bed8390c1..cb60b23953ae7e2d24462559e26a25bf0ad9af93 100644 (file)
@@ -966,7 +966,8 @@ static int accesslog_response(Operation *op, SlapReply *rs) {
                                for (b=m->sml_values; !BER_BVISNULL( b ); b++) {
                                        i++;
                                }
-                       } else if ( m->sml_op == LDAP_MOD_DELETE ) {
+                       } else if ( m->sml_op == LDAP_MOD_DELETE ||
+                               m->sml_op == LDAP_MOD_REPLACE ) {
                                i++;
                        }
                }
@@ -1004,7 +1005,8 @@ static int accesslog_response(Operation *op, SlapReply *rs) {
                                        }
                                        accesslog_val2val( m->sml_desc, b, c_op, &vals[i] );
                                }
-                       } else if ( m->sml_op == LDAP_MOD_DELETE ) {
+                       } else if ( m->sml_op == LDAP_MOD_DELETE ||
+                               m->sml_op == LDAP_MOD_REPLACE ) {
                                vals[i].bv_len = m->sml_desc->ad_cname.bv_len + 2;
                                vals[i].bv_val = ch_malloc( vals[i].bv_len+1 );
                                ptr = lutil_strcopy( vals[i].bv_val,