]> 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)
committerQuanah Gibson-Mount <quanah@openldap.org>
Wed, 13 Feb 2019 17:04:43 +0000 (17:04 +0000)
Check for BVISNULL, maybe rootDSE is a valid reqDN

servers/slapd/overlays/accesslog.c

index 761ce3a8a455bdc7b577c16a7db81c8a6bb232d0..ef79b5620019bb33921b3d39b0f7552c23c5e10c 100644 (file)
@@ -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 ) {