diff options
author | Stefan Metzmacher <metze@sernet.private> | 2010-03-24 09:31:17 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-03-29 15:35:43 +0200 |
commit | 870a21b3ecc11b16f09b59440dc9e42b09f807d3 (patch) | |
tree | faa5f37c3eeac5ca3dfe5c19ddebf1899e4e9ff0 /source4 | |
parent | 8b1651cb5021efdf6ea153b991cdc0ef3da0ffd8 (diff) | |
download | samba-870a21b3ecc11b16f09b59440dc9e42b09f807d3.tar.gz samba-870a21b3ecc11b16f09b59440dc9e42b09f807d3.tar.bz2 samba-870a21b3ecc11b16f09b59440dc9e42b09f807d3.zip |
s4:torture/rpc/echo.c: add explicit check for NTSTATUS r.out.result
metze
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/rpc/echo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/torture/rpc/echo.c b/source4/torture/rpc/echo.c index f33ec35478..db0141c521 100644 --- a/source4/torture/rpc/echo.c +++ b/source4/torture/rpc/echo.c @@ -208,7 +208,6 @@ static bool test_testcall(struct torture_context *tctx, static bool test_testcall2(struct torture_context *tctx, struct dcerpc_pipe *p) { - NTSTATUS status; struct echo_TestCall2 r; int i; struct dcerpc_binding_handle *b = p->binding_handle; @@ -218,8 +217,9 @@ static bool test_testcall2(struct torture_context *tctx, r.out.info = talloc(tctx, union echo_Info); torture_comment(tctx, "Testing TestCall2 level %d\n", i); - status = dcerpc_echo_TestCall2_r(b, tctx, &r); - torture_assert_ntstatus_ok(tctx, status, "TestCall2 failed"); + torture_assert_ntstatus_ok(tctx, dcerpc_echo_TestCall2_r(b, tctx, &r), + "TestCall2 failed"); + torture_assert_ntstatus_ok(tctx, r.out.result, "TestCall2 failed"); } return true; } |