summaryrefslogtreecommitdiff
path: root/dfs_server/dfs_server_ad.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2012-12-06 14:37:21 +0100
committerGünther Deschner <gd@samba.org>2012-12-12 11:28:39 +0100
commit014512f56478152972c7cae75e872a48ea18c91d (patch)
tree1f55cf1a3cbdf3c8c7ecb791af42503a151358c2 /dfs_server/dfs_server_ad.c
parentac434c4223ba7a7cbbd97a59e305445a22a32c76 (diff)
downloadsamba-014512f56478152972c7cae75e872a48ea18c91d.tar.gz
samba-014512f56478152972c7cae75e872a48ea18c91d.tar.bz2
samba-014512f56478152972c7cae75e872a48ea18c91d.zip
dfs_server: Don't allocate a subcontext twice.
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org> Autobuild-User(master): Günther Deschner <gd@samba.org> Autobuild-Date(master): Wed Dec 12 11:28:39 CET 2012 on sn-devel-104
Diffstat (limited to 'dfs_server/dfs_server_ad.c')
-rw-r--r--dfs_server/dfs_server_ad.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dfs_server/dfs_server_ad.c b/dfs_server/dfs_server_ad.c
index ceabe0576e..4d3891a774 100644
--- a/dfs_server/dfs_server_ad.c
+++ b/dfs_server/dfs_server_ad.c
@@ -278,7 +278,7 @@ static NTSTATUS get_dcs(TALLOC_CTX *ctx, struct ldb_context *ldb,
int ret;
uint32_t current_pos = 0;
NTSTATUS status;
- TALLOC_CTX *subctx = talloc_new(ctx);
+ TALLOC_CTX *subctx;
*pset_list = set_list = NULL;