diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-06-13 09:11:21 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:18:06 -0500 |
commit | 68c15667f5c80b1990616829301990315c9a2254 (patch) | |
tree | 7898c803d1e0152499716d40424200ec3d6edb12 /source4 | |
parent | 4b0e5bd75373ffa2d847706a71fd0349dfa15e71 (diff) | |
download | samba-68c15667f5c80b1990616829301990315c9a2254.tar.gz samba-68c15667f5c80b1990616829301990315c9a2254.tar.bz2 samba-68c15667f5c80b1990616829301990315c9a2254.zip |
r7528: cleaned up the QueryDisplayInfo_continue test
(This used to be commit a977dcef030605d0be1b7ce2a6500b202e35eaac)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/rpc/samr.c | 6 |
1 files changed, 2 insertions, 4 deletions
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; |