]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4/dsdb/repl_meta_data: Pass NULL into ldb_msg_add_empty
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Tue, 7 Mar 2023 20:24:49 +0000 (09:24 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 22 Mar 2023 18:40:31 +0000 (18:40 +0000)
We weren't doing anything with the passed-in 'el' afterwards, so this
was just confusing.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/samdb/ldb_modules/repl_meta_data.c

index 175a02d3ba78495996a81eedf83556fce1647a2d..cb32d190dcedda5d4f97400bc0a0c41780adc4fc 100644 (file)
@@ -4712,7 +4712,7 @@ static int replmd_delete_internals(struct ldb_module *module, struct ldb_request
                                 */
                                dsdb_flags |= DSDB_REPLMD_VANISH_LINKS;
                        }
-                       ret = ldb_msg_add_empty(msg, el->name, LDB_FLAG_MOD_DELETE, &el);
+                       ret = ldb_msg_add_empty(msg, el->name, LDB_FLAG_MOD_DELETE, NULL);
                        if (ret != LDB_SUCCESS) {
                                talloc_free(tmp_ctx);
                                ldb_module_oom(module);