From 18f78b44aa44b12cee14e9601105b75d24c5e329 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 2 Feb 2019 22:48:53 +0000 Subject: [PATCH] ITS#8971 tweak prev commit Check for BVISNULL, maybe rootDSE is a valid reqDN --- servers/slapd/overlays/accesslog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) { -- 2.47.2