summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/torture/rpc/winreg.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/source4/torture/rpc/winreg.c b/source4/torture/rpc/winreg.c
index ba82e88896..d7e1247e65 100644
--- a/source4/torture/rpc/winreg.c
+++ b/source4/torture/rpc/winreg.c
@@ -1601,7 +1601,6 @@ static bool test_QueryMultipleValues(struct dcerpc_binding_handle *b,
const char *valuename)
{
struct winreg_QueryMultipleValues r;
- NTSTATUS status;
uint32_t bufsize=0;
ZERO_STRUCT(r);
@@ -1621,10 +1620,9 @@ static bool test_QueryMultipleValues(struct dcerpc_binding_handle *b,
r.in.buffer = r.out.buffer = talloc_zero_array(tctx, uint8_t,
*r.in.buffer_size);
- status = dcerpc_winreg_QueryMultipleValues_r(b, tctx, &r);
-
- if(NT_STATUS_IS_ERR(status))
- torture_fail(tctx, "QueryMultipleValues failed");
+ torture_assert_ntstatus_ok(tctx,
+ dcerpc_winreg_QueryMultipleValues_r(b, tctx, &r),
+ "QueryMultipleValues failed");
talloc_free(r.in.buffer);
bufsize += 0x20;