diff options
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r-- | source4/torture/rpc/lsa.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/source4/torture/rpc/lsa.c b/source4/torture/rpc/lsa.c index 9df5dc0078..a22e2d6e32 100644 --- a/source4/torture/rpc/lsa.c +++ b/source4/torture/rpc/lsa.c @@ -329,6 +329,28 @@ static BOOL test_EnumAccounts(struct dcerpc_pipe *p, return True; } + +static BOOL test_Close(struct dcerpc_pipe *p, + TALLOC_CTX *mem_ctx, + struct policy_handle *handle) +{ + NTSTATUS status; + struct lsa_Close r; + + printf("\ntesting Close\n"); + + r.in.handle = handle; + status = dcerpc_lsa_Close(p, mem_ctx, &r); + if (!NT_STATUS_IS_OK(status)) { + printf("Close failed - %s\n", nt_errstr(status)); + return False; + } + + printf("\n"); + + return True; +} + BOOL torture_rpc_lsa(int dummy) { NTSTATUS status; @@ -356,6 +378,10 @@ BOOL torture_rpc_lsa(int dummy) ret = False; } + if (!test_Close(p, mem_ctx, &handle)) { + ret = False; + } + torture_rpc_close(p); return ret; |