diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-03-29 22:58:53 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-04-15 09:34:04 +0200 |
commit | cf9d425e3d9646c6b4ea1b57a39cca23dfd26ab7 (patch) | |
tree | 7a8e65a06a2d3f60d219f85171ebdff61d6f9bb0 /source4/torture | |
parent | de94672fe083e7a335846353c61b5c0aa08ac0b1 (diff) | |
download | samba-cf9d425e3d9646c6b4ea1b57a39cca23dfd26ab7.tar.gz samba-cf9d425e3d9646c6b4ea1b57a39cca23dfd26ab7.tar.bz2 samba-cf9d425e3d9646c6b4ea1b57a39cca23dfd26ab7.zip |
s4:torture/rpc/dssync.c: check for NT_STATUS_RPC_PROCNUM_OUT_OF_RANGE instead of DCERPC_FAULT_OP_RNG_ERROR
metze
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/rpc/dssync.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/source4/torture/rpc/dssync.c b/source4/torture/rpc/dssync.c index 0e186b3ed9..2e5edfdb88 100644 --- a/source4/torture/rpc/dssync.c +++ b/source4/torture/rpc/dssync.c @@ -1017,12 +1017,8 @@ static bool test_FetchNT4Data(struct torture_context *tctx, torture_skip(tctx, "DsGetNT4ChangeLog not supported by target server"); } else if (!NT_STATUS_IS_OK(status)) { const char *errstr = nt_errstr(status); - if (NT_STATUS_EQUAL(status, NT_STATUS_NET_WRITE_FAULT)) { - struct dcerpc_pipe *p = ctx->new_dc.drsuapi.drs_pipe; - if (p->last_fault_code == DCERPC_FAULT_OP_RNG_ERROR) { - torture_skip(tctx, "DsGetNT4ChangeLog not supported by target server"); - } - errstr = dcerpc_errstr(ctx, p->last_fault_code); + if (NT_STATUS_EQUAL(status, NT_STATUS_RPC_PROCNUM_OUT_OF_RANGE)) { + torture_skip(tctx, "DsGetNT4ChangeLog not supported by target server"); } torture_fail(tctx, talloc_asprintf(tctx, "dcerpc_drsuapi_DsGetNT4ChangeLog failed - %s\n", |