summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-04-12 14:13:55 +0200
committerStefan Metzmacher <metze@samba.org>2010-04-15 09:34:05 +0200
commit98464853f4c508ac26cd0f446dc1365b4c7668c7 (patch)
treee957fd50d771ebe6c3267d2e360a1b686c81df83 /source4/torture/rpc
parent2aba84581616ebf58d3793c1213e2d8c652a2752 (diff)
downloadsamba-98464853f4c508ac26cd0f446dc1365b4c7668c7.tar.gz
samba-98464853f4c508ac26cd0f446dc1365b4c7668c7.tar.bz2
samba-98464853f4c508ac26cd0f446dc1365b4c7668c7.zip
s4:torture/rpc/scanner.c: check for NT_STATUS_RPC_* instead of p->last_fault_code
metze
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/scanner.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/source4/torture/rpc/scanner.c b/source4/torture/rpc/scanner.c
index 090ff74078..c07846cc27 100644
--- a/source4/torture/rpc/scanner.c
+++ b/source4/torture/rpc/scanner.c
@@ -60,19 +60,17 @@ static bool test_num_calls(struct torture_context *tctx,
for (i=0;i<200;i++) {
status = dcerpc_request(p, NULL, i, mem_ctx, &stub_in, &stub_out);
- if (!NT_STATUS_IS_OK(status) &&
- p->last_fault_code == DCERPC_FAULT_OP_RNG_ERROR) {
+ if (NT_STATUS_EQUAL(status, NT_STATUS_RPC_PROCNUM_OUT_OF_RANGE)) {
break;
}
- if (!NT_STATUS_IS_OK(status) && p->last_fault_code == 5) {
+ if (NT_STATUS_EQUAL(status, NT_STATUS_ACCESS_DENIED)) {
printf("\tpipe disconnected at %d\n", i);
goto done;
}
- if (!NT_STATUS_IS_OK(status) && p->last_fault_code == 0x80010111) {
- printf("\terr 0x80010111 at %d\n", i);
- goto done;
+ if (NT_STATUS_EQUAL(status, NT_STATUS_RPC_PROTOCOL_ERROR)) {
+ printf("\tprotocol error at %d\n", i);
}
}