summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-07-29 18:47:24 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-07-29 20:59:53 +1000
commit1547d5fe003461c99238909d804973fc2659c847 (patch)
tree60c19f315ae36ad6d9bbb4ac7f004f6745b7e90a
parentde0b902ffaf04d60ef90727d807c9d06a5561d8e (diff)
downloadsamba-1547d5fe003461c99238909d804973fc2659c847.tar.gz
samba-1547d5fe003461c99238909d804973fc2659c847.tar.bz2
samba-1547d5fe003461c99238909d804973fc2659c847.zip
s4-repl: Use ldb_dn_new() to create the rootDSE DN
Based on a patch proposal by Matthieu Patou <mat@matws.net>. Andrew Bartlett
-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) {