mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
s4:torture/rpc/bench.c: make use of dcerpc_binding_handle stubs
metze
This commit is contained in:
parent
aecd9dd195
commit
6e8fd4df60
@ -41,6 +41,7 @@ static bool test_NetShareEnumAll(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx)
|
||||
int i;
|
||||
bool ret = true;
|
||||
uint32_t resume_handle;
|
||||
struct dcerpc_binding_handle *b = p->binding_handle;
|
||||
|
||||
ZERO_STRUCT(info_ctr);
|
||||
|
||||
@ -79,7 +80,7 @@ static bool test_NetShareEnumAll(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx)
|
||||
break;
|
||||
}
|
||||
|
||||
status = dcerpc_srvsvc_NetShareEnumAll(p, mem_ctx, &r);
|
||||
status = dcerpc_srvsvc_NetShareEnumAll_r(b, mem_ctx, &r);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
printf("NetShareEnumAll level %u failed - %s\n", info_ctr.level, nt_errstr(status));
|
||||
ret = false;
|
||||
|
Loading…
Reference in New Issue
Block a user