From 16ee54c06992caa693035fe5639061e33e059aff Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Tue, 29 Oct 2013 15:13:28 +0100 Subject: s4: dsdb/rootdse/netlogon: Put dn into talloc tree of msg Currently this is put into tmp_ctx, which is freed after calling ldb_module_send_entry. ldb_module_send_entry steals the msg talloc tree to be used later, so dn has to be part of msg's talloc tree, to be available then. This patch is to be squashed into "s4:dsdb/rootdse: Support netlogonrequest" --- source4/dsdb/samdb/ldb_modules/rootdse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit