diff --git a/servers/slapd/overlays/accesslog.c b/servers/slapd/overlays/accesslog.c index 49d61b4e00..0470d0d1bd 100644 --- a/servers/slapd/overlays/accesslog.c +++ b/servers/slapd/overlays/accesslog.c @@ -844,7 +844,7 @@ static int accesslog_response(Operation *op, SlapReply *rs) { 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, - a->a_desc->ad_cname.bv_val ); + m->sml_desc->ad_cname.bv_val ); *ptr++ = ':'; *ptr++ = '-'; *ptr = '\0';