summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-12-02 00:08:56 +0100
committerGünther Deschner <gd@samba.org>2008-12-02 00:53:27 +0100
commit931f16f6229f16eac866934f65f567c200d4b111 (patch)
tree6ad5c29ced84d78ca0bb92f5c11ebb578d8bb7dc /source3/rpc_server
parent61a6b49e48f9d58c50a1be8e3b55ed49ceba5344 (diff)
downloadsamba-931f16f6229f16eac866934f65f567c200d4b111.tar.gz
samba-931f16f6229f16eac866934f65f567c200d4b111.tar.bz2
samba-931f16f6229f16eac866934f65f567c200d4b111.zip
s3-samr: _samr_EnumDomainUsers always returns a sam array (even w/o users).
Guenther
Diffstat (limited to 'source3/rpc_server')
-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 7baab1c86f..dc2377b902 100644
--- a/source3/rpc_server/srv_samr_nt.c
+++ b/source3/rpc_server/srv_samr_nt.c
@@ -1012,6 +1012,7 @@ NTSTATUS _samr_EnumDomainUsers(pipes_struct *p,
if (!samr_array) {
return NT_STATUS_NO_MEMORY;
}
+ *r->out.sam = samr_array;
become_root();
@@ -1071,7 +1072,6 @@ NTSTATUS _samr_EnumDomainUsers(pipes_struct *p,
samr_array->entries = samr_entries;
*r->out.resume_handle = *r->in.resume_handle + num_account;
- *r->out.sam = samr_array;
*r->out.num_entries = num_account;
DEBUG(5,("_samr_EnumDomainUsers: %d\n", __LINE__));