summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/dsdb/samdb/ldb_modules/rootdse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/rootdse.c b/source4/dsdb/samdb/ldb_modules/rootdse.c
index b7e9fecc88..bdb5d92603 100644
--- a/source4/dsdb/samdb/ldb_modules/rootdse.c
+++ b/source4/dsdb/samdb/ldb_modules/rootdse.c
@@ -801,7 +801,7 @@ static int rootdse_handle_netlogon(struct rootdse_context *ac)
goto failed;
}
- msg->dn = ldb_dn_new(tmp_ctx, ldb, "");
+ msg->dn = ldb_dn_new(msg, ldb, "");
if (!msg->dn) {
error = ldb_oom(ldb);
goto failed;