dfs_server: Don't allocate a subcontext twice.
[kai/samba-autobuild/.git] / 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;