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_4_48~109 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18f78b44aa44b12cee14e9601105b75d24c5e329;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 761ce3a8a4..ef79b56200 100644 --- a/servers/slapd/overlays/accesslog.c +++ b/servers/slapd/overlays/accesslog.c @@ -1522,7 +1522,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 ) {