From 3d149a460892a7c78c635cc1303ed5eb0c1641ea 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 data to be used later, so dn has to live be part of msg's talloc tree. 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(-) (limited to 'source4/dsdb/samdb/ldb_modules/rootdse.c') 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