From: Howard Chu Date: Sat, 2 Feb 2019 21:45:04 +0000 (+0000) Subject: ITS#8971 most exops have no reqDN X-Git-Tag: OPENLDAP_REL_ENG_2_4_48~110 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69b246fed90b9a3620e7ad967ead234ea6341d10;p=thirdparty%2Fopenldap.git ITS#8971 most exops have no reqDN --- diff --git a/servers/slapd/overlays/accesslog.c b/servers/slapd/overlays/accesslog.c index f0ea3067e8..761ce3a8a4 100644 --- a/servers/slapd/overlays/accesslog.c +++ b/servers/slapd/overlays/accesslog.c @@ -1522,7 +1522,8 @@ static int accesslog_response(Operation *op, SlapReply *rs) { e = accesslog_entry( op, rs, li, logop, &op2 ); - attr_merge_one( e, ad_reqDN, &op->o_req_dn, &op->o_req_ndn ); + if ( !BER_BVISEMPTY( &op->o_req_ndn )) + attr_merge_one( e, ad_reqDN, &op->o_req_dn, &op->o_req_ndn ); if ( rs->sr_text ) { ber_str2bv( rs->sr_text, 0, 0, &bv );