diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-03-13 16:15:35 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-03-13 17:00:40 +0100 |
commit | c3d8b4f003a63d3f4a9e5f89b70cec57af35e5a3 (patch) | |
tree | 978504de3d40e4d0121cf1c3ba3c01d10b836e6f | |
parent | 9bbe047f8dd91767e2763d306e9f39d8fb45b950 (diff) | |
download | samba-c3d8b4f003a63d3f4a9e5f89b70cec57af35e5a3.tar.gz samba-c3d8b4f003a63d3f4a9e5f89b70cec57af35e5a3.tar.bz2 samba-c3d8b4f003a63d3f4a9e5f89b70cec57af35e5a3.zip |
s4:torture/rpc/countcalls: use dcerpc_binding_handle_raw_call() instead of dcerpc_request()
metze
-rw-r--r-- | source4/torture/rpc/countcalls.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/source4/torture/rpc/countcalls.c b/source4/torture/rpc/countcalls.c index 7f3735105c..52be979a9c 100644 --- a/source4/torture/rpc/countcalls.c +++ b/source4/torture/rpc/countcalls.c @@ -53,12 +53,22 @@ bool count_calls(struct torture_context *tctx, return false; } - stub_in = data_blob_talloc(p, mem_ctx, 0); + stub_in = data_blob_null; printf("\nScanning pipe '%s'\n", iface->name); for (i=0;i<500;i++) { - status = dcerpc_request(p, NULL, i, p, &stub_in, &stub_out); + uint32_t out_flags = 0; + + status = dcerpc_binding_handle_raw_call(p->binding_handle, + NULL, i, + 0, /* in_flags */ + stub_in.data, + stub_in.length, + mem_ctx, + &stub_out.data, + &stub_out.length, + &out_flags); if (NT_STATUS_EQUAL(status, NT_STATUS_RPC_PROCNUM_OUT_OF_RANGE)) { i--; break; |