diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/rpc/bind.c | 4 |
1 files changed, 4 insertions, 0 deletions
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", |