diff options
author | Günther Deschner <gd@samba.org> | 2008-12-02 00:08:56 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2008-12-12 12:30:58 +0100 |
commit | 18d1d796fc6025797624647ccc3b4eec59134430 (patch) | |
tree | c32dda84e25f9ec54a44dec38ed0ca2951ae5256 | |
parent | d7ecc6f2072fe51e556c6ff43b7cf5c879b22ca6 (diff) | |
download | samba-18d1d796fc6025797624647ccc3b4eec59134430.tar.gz |
s3-samr: _samr_EnumDomainUsers always returns a sam array (even w/o users).
Guenther
(cherry picked from commit fb575f6ce7915a41079afc8762fbf83e256c6631)
-rw-r--r-- | source/rpc_server/srv_samr_nt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/rpc_server/srv_samr_nt.c b/source/rpc_server/srv_samr_nt.c index 9fc1d651070..62e00d7cff4 100644 --- a/source/rpc_server/srv_samr_nt.c +++ b/source/rpc_server/srv_samr_nt.c @@ -1009,6 +1009,7 @@ NTSTATUS _samr_EnumDomainUsers(pipes_struct *p, if (!samr_array) { return NT_STATUS_NO_MEMORY; } + *r->out.sam = samr_array; become_root(); @@ -1068,7 +1069,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__)); |