From 98464853f4c508ac26cd0f446dc1365b4c7668c7 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 12 Apr 2010 14:13:55 +0200 Subject: s4:torture/rpc/scanner.c: check for NT_STATUS_RPC_* instead of p->last_fault_code metze --- source4/torture/rpc/scanner.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'source4/torture/rpc') 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); } } -- cgit