From: Howard Chu Date: Thu, 2 Nov 2006 18:57:55 +0000 (+0000) Subject: ITS#4728 mod/Replace can have no values also X-Git-Tag: OPENLDAP_REL_ENG_2_3_MP~18 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=730d8e5bd311344a010566a6f15b560694549d29;p=openldap ITS#4728 mod/Replace can have no values also --- diff --git a/servers/slapd/overlays/accesslog.c b/servers/slapd/overlays/accesslog.c index 2e0fe09f88..a98d11bf6d 100644 --- a/servers/slapd/overlays/accesslog.c +++ b/servers/slapd/overlays/accesslog.c @@ -1028,7 +1028,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++; } } @@ -1073,7 +1074,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,