1
0
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:
Stefan Metzmacher 2010-03-17 12:05:42 +01:00
parent aecd9dd195
commit 6e8fd4df60

View File

@ -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;