summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-10-23 03:30:14 +0200
committerGünther Deschner <gd@samba.org>2008-10-23 11:46:18 +0200
commit29737ab5da4b8fd753e455bf00e1ad2c3ae8d957 (patch)
tree5ca2423bf9199830dd2724b03b0b6d954e6d85ac
parent60164e9002c28911dbfd7115cb9bff05be5aff25 (diff)
downloadsamba-29737ab5da4b8fd753e455bf00e1ad2c3ae8d957.tar.gz
samba-29737ab5da4b8fd753e455bf00e1ad2c3ae8d957.tar.bz2
samba-29737ab5da4b8fd753e455bf00e1ad2c3ae8d957.zip
s3-samr-server: fix return code in _samr_QueryDisplayInformation.
Guenther
-rw-r--r--source3/rpc_server/srv_samr_nt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c
index 36be832a75..0729c2af48 100644
--- a/source3/rpc_server/srv_samr_nt.c
+++ b/source3/rpc_server/srv_samr_nt.c
@@ -1647,7 +1647,7 @@ NTSTATUS _samr_QueryDisplayInfo(pipes_struct *p,
/* calculate the total size */
total_data_size=num_account*struct_size;
- if (num_account) {
+ if (max_entries <= num_account) {
status = STATUS_MORE_ENTRIES;
} else {
status = NT_STATUS_OK;