git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9bbe047
)
s4:torture/rpc/countcalls: use dcerpc_binding_handle_raw_call() instead of dcerpc_req...
author
Stefan Metzmacher
<metze@samba.org>
Sun, 13 Mar 2011 15:15:35 +0000
(16:15 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Sun, 13 Mar 2011 16:00:40 +0000
(17:00 +0100)
metze
source4/torture/rpc/countcalls.c
patch
|
blob
|
history
diff --git
a/source4/torture/rpc/countcalls.c
b/source4/torture/rpc/countcalls.c
index 7f3735105c6ef09aa3b21a3855ace4e70649e6d2..52be979a9c4d3bab4e3a8b308f6cb839f90f5b36 100644
(file)
--- 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;
}
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++) {
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;
if (NT_STATUS_EQUAL(status, NT_STATUS_RPC_PROCNUM_OUT_OF_RANGE)) {
i--;
break;