From c3d8b4f003a63d3f4a9e5f89b70cec57af35e5a3 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sun, 13 Mar 2011 16:15:35 +0100 Subject: [PATCH] s4:torture/rpc/countcalls: use dcerpc_binding_handle_raw_call() instead of dcerpc_request() metze --- source4/torture/rpc/countcalls.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/source4/torture/rpc/countcalls.c b/source4/torture/rpc/countcalls.c index 7f3735105c6..52be979a9c4 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; -- 2.34.1