]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#8971 most exops have no reqDN
authorHoward Chu <hyc@openldap.org>
Sat, 2 Feb 2019 21:45:04 +0000 (21:45 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Wed, 13 Feb 2019 17:04:38 +0000 (17:04 +0000)
servers/slapd/overlays/accesslog.c

index f0ea3067e8207a1dec4dd3f73b42422f3a396d98..761ce3a8a455bdc7b577c16a7db81c8a6bb232d0 100644 (file)
@@ -1522,7 +1522,8 @@ static int accesslog_response(Operation *op, SlapReply *rs) {
 
        e = accesslog_entry( op, rs, li, logop, &op2 );
 
-       attr_merge_one( e, ad_reqDN, &op->o_req_dn, &op->o_req_ndn );
+       if ( !BER_BVISEMPTY( &op->o_req_ndn ))
+               attr_merge_one( e, ad_reqDN, &op->o_req_dn, &op->o_req_ndn );
 
        if ( rs->sr_text ) {
                ber_str2bv( rs->sr_text, 0, 0, &bv );