summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-03-18 09:38:57 +0100
committerStefan Metzmacher <metze@samba.org>2010-03-18 12:39:42 +0100
commitcef46436fc89d938780a4bdaea4e654b9a4c01b1 (patch)
tree1472599915620327f9f8e5154a240ca321b49bc3
parent6de83ef6277d8506478ce5ff43d33e39541b310c (diff)
downloadsamba-cef46436fc89d938780a4bdaea4e654b9a4c01b1.tar.gz
samba-cef46436fc89d938780a4bdaea4e654b9a4c01b1.tar.bz2
samba-cef46436fc89d938780a4bdaea4e654b9a4c01b1.zip
s4:torture/rpc/handles: check the correct last_fault_code
metze
-rw-r--r--source4/torture/rpc/handles.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/torture/rpc/handles.c b/source4/torture/rpc/handles.c
index fa42a6ad8f..8449fba5f1 100644
--- a/source4/torture/rpc/handles.c
+++ b/source4/torture/rpc/handles.c
@@ -207,13 +207,13 @@ static bool test_handles_lsa_shared(struct torture_context *torture)
status = dcerpc_lsa_Close(p3, mem_ctx, &c);
torture_assert_ntstatus_equal(torture, status, NT_STATUS_NET_WRITE_FAULT,
"closing policy handle on p3");
- torture_assert_int_equal(torture, p1->last_fault_code, DCERPC_FAULT_CONTEXT_MISMATCH,
+ torture_assert_int_equal(torture, p3->last_fault_code, DCERPC_FAULT_CONTEXT_MISMATCH,
"closing policy handle on p3");
status = dcerpc_lsa_Close(p2, mem_ctx, &c);
torture_assert_ntstatus_equal(torture, status, NT_STATUS_NET_WRITE_FAULT,
"closing policy handle on p2 again");
- torture_assert_int_equal(torture, p1->last_fault_code, DCERPC_FAULT_CONTEXT_MISMATCH,
+ torture_assert_int_equal(torture, p2->last_fault_code, DCERPC_FAULT_CONTEXT_MISMATCH,
"closing policy handle on p2 again");
/*
@@ -257,13 +257,13 @@ static bool test_handles_lsa_shared(struct torture_context *torture)
status = dcerpc_lsa_Close(p3, mem_ctx, &c);
torture_assert_ntstatus_equal(torture, status, NT_STATUS_NET_WRITE_FAULT,
"closing policy handle on p3");
- torture_assert_int_equal(torture, p1->last_fault_code, DCERPC_FAULT_CONTEXT_MISMATCH,
+ torture_assert_int_equal(torture, p3->last_fault_code, DCERPC_FAULT_CONTEXT_MISMATCH,
"closing policy handle on p3");
status = dcerpc_lsa_Close(p2, mem_ctx, &c);
torture_assert_ntstatus_equal(torture, status, NT_STATUS_NET_WRITE_FAULT,
"closing policy handle on p2 again");
- torture_assert_int_equal(torture, p1->last_fault_code, DCERPC_FAULT_CONTEXT_MISMATCH,
+ torture_assert_int_equal(torture, p2->last_fault_code, DCERPC_FAULT_CONTEXT_MISMATCH,
"closing policy handle on p2 again");
/*