summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-03-13 16:16:12 +0100
committerStefan Metzmacher <metze@samba.org>2011-03-13 17:00:59 +0100
commit572683d9ad421c7077887e1d98583c33334eac54 (patch)
tree00be0c17a802546806de29d46100ec5b7d92243e /source4/torture
parentc3d8b4f003a63d3f4a9e5f89b70cec57af35e5a3 (diff)
downloadsamba-572683d9ad421c7077887e1d98583c33334eac54.tar.gz
samba-572683d9ad421c7077887e1d98583c33334eac54.tar.bz2
samba-572683d9ad421c7077887e1d98583c33334eac54.zip
s4:torture/rpc/scanner: use dcerpc_binding_handle_raw_call() instead of dcerpc_request()
metze
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/rpc/scanner.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/source4/torture/rpc/scanner.c b/source4/torture/rpc/scanner.c
index e434da2615..0af35fa3e6 100644
--- a/source4/torture/rpc/scanner.c
+++ b/source4/torture/rpc/scanner.c
@@ -55,11 +55,20 @@ static bool test_num_calls(struct torture_context *tctx,
}
/* make null calls */
- stub_in = data_blob(NULL, 1000);
+ stub_in = data_blob_talloc(mem_ctx, NULL, 1000);
memset(stub_in.data, 0xFF, stub_in.length);
for (i=0;i<200;i++) {
- status = dcerpc_request(p, NULL, i, mem_ctx, &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)) {
break;
}