From 1864cd8fa79cf109460516973c67e785fd0a7644 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 12 Apr 2010 14:12:10 +0200 Subject: s4:torture/rpc/countcalls.c: check for NT_STATUS_RPC_PROCNUM_OUT_OF_RANGE instead of DCERPC_FAULT_OP_RNG_ERROR metze --- source4/torture/rpc/countcalls.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'source4/torture/rpc') diff --git a/source4/torture/rpc/countcalls.c b/source4/torture/rpc/countcalls.c index e49ba6fa39..5857af68dd 100644 --- a/source4/torture/rpc/countcalls.c +++ b/source4/torture/rpc/countcalls.c @@ -59,13 +59,7 @@ bool count_calls(struct torture_context *tctx, for (i=0;i<500;i++) { status = dcerpc_request(p, NULL, i, p, &stub_in, &stub_out); - if (NT_STATUS_EQUAL(status, NT_STATUS_NET_WRITE_FAULT) && - p->last_fault_code == DCERPC_FAULT_OP_RNG_ERROR) { - i--; - break; - } - if (NT_STATUS_EQUAL(status, NT_STATUS_NET_WRITE_FAULT) && - p->last_fault_code == DCERPC_FAULT_OP_RNG_ERROR) { + if (NT_STATUS_EQUAL(status, NT_STATUS_RPC_PROCNUM_OUT_OF_RANGE)) { i--; break; } -- cgit