dfs_server: Don't allocate a subcontext twice.
authorAndreas Schneider <asn@samba.org>
Thu, 6 Dec 2012 13:37:21 +0000 (14:37 +0100)
committerGünther Deschner <gd@samba.org>
Wed, 12 Dec 2012 10:28:39 +0000 (11:28 +0100)
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

dfs_server/dfs_server_ad.c

index ceabe0576e48d702825ae44be4256354b19ae16b..4d3891a774a9042749d1a6f0b1be685b5fa39225 100644 (file)
@@ -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;