From 279e9166defca334d27bdde7805760a7de1f169f Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 29 May 2006 10:59:43 +0000 Subject: r15930: Attempt to fix the buildfarm segfaults -- thanks Tridge for the hints (This used to be commit e363020115fc17caee6c3230d46fff41670a27d4) --- source4/torture/rpc/bind.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source4/torture') diff --git a/source4/torture/rpc/bind.c b/source4/torture/rpc/bind.c index cece5eb928..5267623e96 100644 --- a/source4/torture/rpc/bind.c +++ b/source4/torture/rpc/bind.c @@ -193,6 +193,10 @@ BOOL torture_bind_authcontext(struct torture_context *torture) status = dcerpc_lsa_OpenPolicy2(lsa_pipe, mem_ctx, &openpolicy); + cli->tree->session = tmp; + talloc_free(lsa_pipe); + lsa_pipe = NULL; + if (!NT_STATUS_EQUAL(status, NT_STATUS_INVALID_HANDLE)) { d_printf("dcerpc_lsa_OpenPolicy2 with wrong vuid gave %s, " "expected NT_STATUS_INVALID_HANDLE\n", -- cgit