diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-10-29 15:13:28 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-10-29 15:40:13 +0100 |
commit | 16ee54c06992caa693035fe5639061e33e059aff (patch) | |
tree | 37fc16426cd6534d28e0e0d9fd9a1874328a6444 | |
parent | 2753e51ca6826ccfd0f7fba72295559011598e79 (diff) | |
download | samba-16ee54c06992caa693035fe5639061e33e059aff.tar.gz samba-16ee54c06992caa693035fe5639061e33e059aff.tar.bz2 samba-16ee54c06992caa693035fe5639061e33e059aff.zip |
s4: dsdb/rootdse/netlogon: Put dn into talloc tree of msgnetlogon-5
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"
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/rootdse.c | 2 |
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; |