]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
dsdb/samdb/ldb_modules: Use correct member of union
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Wed, 14 Jul 2021 04:10:09 +0000 (16:10 +1200)
committerJeremy Allison <jra@samba.org>
Sat, 4 Sep 2021 00:10:37 +0000 (00:10 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/dsdb/samdb/ldb_modules/objectguid.c
source4/dsdb/samdb/ldb_modules/repl_meta_data.c

index bc3260cf0d876d0853349036bede0458fa8c91df..093d6ed74cac6bcf5b3b6e62dd4ecdd660c7b783 100644 (file)
@@ -196,7 +196,7 @@ static int objectguid_modify(struct ldb_module *module, struct ldb_request *req)
        ldb_debug(ldb, LDB_DEBUG_TRACE, "objectguid_modify_record\n");
 
        /* do not manipulate our control entries */
-       if (ldb_dn_is_special(req->op.add.message->dn)) {
+       if (ldb_dn_is_special(req->op.mod.message->dn)) {
                return ldb_next_request(module, req);
        }
 
index fbeab0b182543fc552279b5b9e23111078cb40e0..599cb79c1fd3a3bc1675ff7ddd07c35be3d2c39f 100644 (file)
@@ -3781,7 +3781,7 @@ static int replmd_rename(struct ldb_module *module, struct ldb_request *req)
        struct ldb_request *down_req;
 
        /* do not manipulate our control entries */
-       if (ldb_dn_is_special(req->op.mod.message->dn)) {
+       if (ldb_dn_is_special(req->op.rename.olddn)) {
                return ldb_next_request(module, req);
        }