summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-04-13 21:48:36 +0200
committerStefan Metzmacher <metze@samba.org>2010-04-15 09:34:06 +0200
commit51f7b1382b91053ae96b2cd14dae17ad6eea0df4 (patch)
treec7c99b401a14775cd55ccd021eff9790adeb6d83
parentc85884ecc889945721303818d6fa18081403b3c2 (diff)
downloadsamba-51f7b1382b91053ae96b2cd14dae17ad6eea0df4.tar.gz
samba-51f7b1382b91053ae96b2cd14dae17ad6eea0df4.tar.bz2
samba-51f7b1382b91053ae96b2cd14dae17ad6eea0df4.zip
s4:torture/rpc/dsgetinfo.c: check for NT_STATUS_RPC_ENUM_VALUE_OUT_OF_RANGE instead of DCERPC_FAULT_INVALID_TAG
metze
-rw-r--r--source4/torture/rpc/dsgetinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/torture/rpc/dsgetinfo.c b/source4/torture/rpc/dsgetinfo.c
index 31ab7d075d..7d210229d8 100644
--- a/source4/torture/rpc/dsgetinfo.c
+++ b/source4/torture/rpc/dsgetinfo.c
@@ -342,7 +342,7 @@ static bool test_getinfo(struct torture_context *tctx,
r.out.info_type = &info_type;
status = dcerpc_drsuapi_DsReplicaGetInfo_r(b, tctx, &r);
- if (!NT_STATUS_IS_OK(status) && p->last_fault_code == DCERPC_FAULT_INVALID_TAG) {
+ if (NT_STATUS_EQUAL(status, NT_STATUS_RPC_ENUM_VALUE_OUT_OF_RANGE)) {
torture_comment(tctx,
"DsReplicaGetInfo level %d and/or infotype %d not supported by server\n",
array[i].level, array[i].infotype);