]> 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)
committerHoward Chu <hyc@openldap.org>
Sat, 2 Feb 2019 21:45:04 +0000 (21:45 +0000)
servers/slapd/overlays/accesslog.c

index aa7767ea9d07a495a0ac1f911db8641ad936276a..3034797837cb01a7a89772c7f7eec3f7b5dcd037 100644 (file)
@@ -1526,7 +1526,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 );