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:13:28 +0100 |
commit | 3d149a460892a7c78c635cc1303ed5eb0c1641ea (patch) | |
tree | 37fc16426cd6534d28e0e0d9fd9a1874328a6444 | |
parent | 2753e51ca6826ccfd0f7fba72295559011598e79 (diff) | |
download | samba-3d149a460892a7c78c635cc1303ed5eb0c1641ea.tar.gz samba-3d149a460892a7c78c635cc1303ed5eb0c1641ea.tar.bz2 samba-3d149a460892a7c78c635cc1303ed5eb0c1641ea.zip |
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"
-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; |