From c3c4644923ea468c829cab85a0292b1f76725ee4 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 2 Nov 2006 19:06:54 +0000 Subject: [PATCH] ITS#4728 patch from HEAD --- servers/slapd/overlays/accesslog.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/servers/slapd/overlays/accesslog.c b/servers/slapd/overlays/accesslog.c index d47ae1d47a..cb60b23953 100644 --- a/servers/slapd/overlays/accesslog.c +++ b/servers/slapd/overlays/accesslog.c @@ -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, -- 2.39.5