summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-04-10 11:04:04 +0200
committerStefan Metzmacher <metze@samba.org>2010-04-15 09:34:05 +0200
commit0cc24f2f9b36241afd4240c5d312052f5010d014 (patch)
treee37c17a13098f03b704fb4879fee8998c4d78e5f
parentcf9d425e3d9646c6b4ea1b57a39cca23dfd26ab7 (diff)
downloadsamba-0cc24f2f9b36241afd4240c5d312052f5010d014.tar.gz
samba-0cc24f2f9b36241afd4240c5d312052f5010d014.tar.bz2
samba-0cc24f2f9b36241afd4240c5d312052f5010d014.zip
s4:torture/rpc/alter_context: check for NT_STATUS_RPC_PROTOCOL_ERROR instead of DCERPC_NCA_S_PROTO_ERROR
metze
-rw-r--r--source4/torture/rpc/alter_context.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source4/torture/rpc/alter_context.c b/source4/torture/rpc/alter_context.c
index 015e3a25fd..cbfe034d06 100644
--- a/source4/torture/rpc/alter_context.c
+++ b/source4/torture/rpc/alter_context.c
@@ -87,9 +87,7 @@ bool torture_rpc_alter_context(struct torture_context *torture)
torture_comment(torture, "Testing change of primary context\n");
status = dcerpc_alter_context(p, torture, &p2->syntax, &p2->transfer_syntax);
- if (NT_STATUS_EQUAL(status, NT_STATUS_NET_WRITE_FAULT)) {
- torture_assert_int_equal(torture, p->last_fault_code, DCERPC_NCA_S_PROTO_ERROR,
- "dcerpc_alter_context should generate a proto error");
+ if (NT_STATUS_EQUAL(status, NT_STATUS_RPC_PROTOCOL_ERROR)) {
ret &= test_lsa_OpenPolicy2_ex(p->binding_handle, torture, &handle,
NT_STATUS_PIPE_DISCONNECTED);