From 299a6ca0f426e2e2715dd37d22c6c0bf045f2f6a 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 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 ) {