From 68c15667f5c80b1990616829301990315c9a2254 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 13 Jun 2005 09:11:21 +0000 Subject: r7528: cleaned up the QueryDisplayInfo_continue test (This used to be commit a977dcef030605d0be1b7ce2a6500b202e35eaac) --- source4/torture/rpc/samr.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'source4/torture') diff --git a/source4/torture/rpc/samr.c b/source4/torture/rpc/samr.c index 83c5db4a42..befbe0f9f7 100644 --- a/source4/torture/rpc/samr.c +++ b/source4/torture/rpc/samr.c @@ -2486,8 +2486,6 @@ static BOOL test_QueryDisplayInfo_continue(struct dcerpc_pipe *p, TALLOC_CTX *me NTSTATUS status; struct samr_QueryDisplayInfo r; BOOL ret = True; - uint16_t levels[] = {1, 2, 3, 4, 5}; - int i; printf("Testing QueryDisplayInfo continuation\n"); @@ -2516,8 +2514,8 @@ static BOOL test_QueryDisplayInfo_continue(struct dcerpc_pipe *p, TALLOC_CTX *me break; } r.in.start_idx++; - } while (NT_STATUS_EQUAL(status, STATUS_MORE_ENTRIES) || - NT_STATUS_IS_OK(status) && + } while ((NT_STATUS_EQUAL(status, STATUS_MORE_ENTRIES) || + NT_STATUS_IS_OK(status)) && r.out.returned_size != 0); return ret; -- cgit