summaryrefslogtreecommitdiff
path: root/source4/dsdb/repl
diff options
context:
space:
mode:
Diffstat (limited to 'source4/dsdb/repl')
-rw-r--r--source4/dsdb/repl/replicated_objects.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/dsdb/repl/replicated_objects.c b/source4/dsdb/repl/replicated_objects.c
index 2c40159677..dadb9a1891 100644
--- a/source4/dsdb/repl/replicated_objects.c
+++ b/source4/dsdb/repl/replicated_objects.c
@@ -657,7 +657,11 @@ WERROR dsdb_replicated_objects_commit(struct ldb_context *ldb,
if (msg == NULL) {
return WERR_NOMEM;
}
- msg->dn = NULL;
+ msg->dn = ldb_dn_new(msg, ldb, "");
+ if (msg->dn == NULL) {
+ talloc_free(msg);
+ return WERR_NOMEM;
+ }
ret = ldb_msg_add_string(msg, "schemaUpdateNow", "1");
if (ret != LDB_SUCCESS) {