]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#8971 tweak prev commit
authorHoward Chu <hyc@openldap.org>
Sat, 2 Feb 2019 22:48:53 +0000 (22:48 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 2 Feb 2019 22:48:53 +0000 (22:48 +0000)
Check for BVISNULL, maybe rootDSE is a valid reqDN

servers/slapd/overlays/accesslog.c

index 3034797837cb01a7a89772c7f7eec3f7b5dcd037..b22e5cb02519edc0a1a834824f2b47880a42f3c7 100644 (file)
@@ -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 ) {