diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-03-11 11:33:10 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-03-12 15:25:52 +0100 |
commit | f1633934cd1fc455648230c6e542c2a67f751879 (patch) | |
tree | 1fd5eb721cba7f13d2eb9b7159cca46e6b02cf95 /source4/torture/libnet/domain.c | |
parent | 7be154a6168bd1bb49d776599b9ede0826835c66 (diff) | |
download | samba-f1633934cd1fc455648230c6e542c2a67f751879.tar.gz samba-f1633934cd1fc455648230c6e542c2a67f751879.tar.bz2 samba-f1633934cd1fc455648230c6e542c2a67f751879.zip |
s4:torture/libnet: make use of dcerpc_binding_handle stubs
metze
Diffstat (limited to 'source4/torture/libnet/domain.c')
-rw-r--r-- | source4/torture/libnet/domain.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/torture/libnet/domain.c b/source4/torture/libnet/domain.c index 0ba72df4e4..02cdc8a0db 100644 --- a/source4/torture/libnet/domain.c +++ b/source4/torture/libnet/domain.c @@ -47,7 +47,7 @@ static bool test_domainopen(struct libnet_context *net_ctx, TALLOC_CTX *mem_ctx, } -static bool test_cleanup(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, +static bool test_cleanup(struct dcerpc_binding_handle *b, TALLOC_CTX *mem_ctx, struct policy_handle *domain_handle) { NTSTATUS status; @@ -59,7 +59,7 @@ static bool test_cleanup(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, printf("closing domain handle\n"); - status = dcerpc_samr_Close(p, mem_ctx, &r); + status = dcerpc_samr_Close_r(b, mem_ctx, &r); if (!NT_STATUS_IS_OK(status)) { printf("Close failed - %s\n", nt_errstr(status)); return false; @@ -100,7 +100,7 @@ bool torture_domainopen(struct torture_context *torture) goto done; } - if (!test_cleanup(net_ctx->samr.pipe, mem_ctx, &h)) { + if (!test_cleanup(net_ctx->samr.pipe->binding_handle, mem_ctx, &h)) { ret = false; goto done; } |