From: Howard Chu Date: Sat, 2 Feb 2019 22:48:53 +0000 (+0000) Subject: ITS#8971 tweak prev commit X-Git-Tag: OPENLDAP_REL_ENG_2_5_0ALPHA~67^2~124 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=299a6ca0f426e2e2715dd37d22c6c0bf045f2f6a;p=thirdparty%2Fopenldap.git ITS#8971 tweak prev commit Check for BVISNULL, maybe rootDSE is a valid reqDN --- diff --git a/servers/slapd/overlays/accesslog.c b/servers/slapd/overlays/accesslog.c index 3034797837..b22e5cb025 100644 --- a/servers/slapd/overlays/accesslog.c +++ b/servers/slapd/overlays/accesslog.c @@ -1526,7 +1526,7 @@ static int accesslog_response(Operation *op, SlapReply *rs) { e = accesslog_entry( op, rs, li, logop, &op2 ); - if ( !BER_BVISEMPTY( &op->o_req_ndn )) + if ( !BER_BVISNULL( &op->o_req_ndn )) attr_merge_one( e, ad_reqDN, &op->o_req_dn, &op->o_req_ndn ); if ( rs->sr_text ) {