summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2005-08-02 19:48:42 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:00:21 -0500
commit7715c33ab1624ce27257dd4c75e56936c6093cb6 (patch)
tree8fb1f4903f5a61bd0ce9bceaffb5af38f67b4374
parentad6d233adf62220e1c0c1492ba67cf00f341588e (diff)
downloadsamba-7715c33ab1624ce27257dd4c75e56936c6093cb6.tar.gz
samba-7715c33ab1624ce27257dd4c75e56936c6093cb6.tar.bz2
samba-7715c33ab1624ce27257dd4c75e56936c6093cb6.zip
r8938: fix querydispinfo search semantics.
Just in case some uses rpcclient for code-testing... Guenther (This used to be commit 624b1c220801834820a605274b1abce883597403)
-rw-r--r--source3/rpcclient/cmd_samr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/rpcclient/cmd_samr.c b/source3/rpcclient/cmd_samr.c
index bd150f2a35..acb3927105 100644
--- a/source3/rpcclient/cmd_samr.c
+++ b/source3/rpcclient/cmd_samr.c
@@ -1095,7 +1095,7 @@ static NTSTATUS cmd_samr_query_dispinfo(struct cli_state *cli,
}
- while(1) {
+ do {
if (!got_params)
get_query_dispinfo_params(
@@ -1108,7 +1108,7 @@ static NTSTATUS cmd_samr_query_dispinfo(struct cli_state *cli,
loop_count++;
- if (!NT_STATUS_IS_OK(result) && !NT_STATUS_EQUAL(result, STATUS_MORE_ENTRIES))
+ if (NT_STATUS_IS_ERR(result))
break;
if (num_entries == 0)
@@ -1133,7 +1133,7 @@ static NTSTATUS cmd_samr_query_dispinfo(struct cli_state *cli,
break;
}
}
- }
+ } while ( NT_STATUS_EQUAL(result, STATUS_MORE_ENTRIES));
done:
return result;