diff options
author | Günther Deschner <gd@samba.org> | 2009-06-07 00:44:51 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-06-07 00:55:45 +0200 |
commit | c3f1f6cac9fc92f373ec376824014c09c6760a0d (patch) | |
tree | a7ec17d82c2a3912ac0baa347c67e59984ad2968 /source3/rpc_server | |
parent | ee059e33d5227a53f90b2cbb5977c5017e7cec49 (diff) | |
download | samba-c3f1f6cac9fc92f373ec376824014c09c6760a0d.tar.gz samba-c3f1f6cac9fc92f373ec376824014c09c6760a0d.tar.xz samba-c3f1f6cac9fc92f373ec376824014c09c6760a0d.zip |
s3-samr: remove total_data_size variable in _samr_QueryDisplayInfo.
Guenther
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_samr_nt.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c index 396365bc17..6e990a319f 100644 --- a/source3/rpc_server/srv_samr_nt.c +++ b/source3/rpc_server/srv_samr_nt.c @@ -1410,7 +1410,7 @@ NTSTATUS _samr_QueryDisplayInfo(pipes_struct *p, union samr_DispInfo *disp_info = r->out.info; - uint32 temp_size=0, total_data_size=0; + uint32 temp_size=0; NTSTATUS disp_ret = NT_STATUS_UNSUCCESSFUL; uint32 num_account = 0; enum remote_arch_types ra_type = get_remote_arch(); @@ -1591,9 +1591,6 @@ NTSTATUS _samr_QueryDisplayInfo(pipes_struct *p, if (!NT_STATUS_IS_OK(disp_ret)) return disp_ret; - /* calculate the total size */ - total_data_size=num_account*struct_size; - if (max_entries <= num_account) { status = STATUS_MORE_ENTRIES; } else { @@ -1605,7 +1602,7 @@ NTSTATUS _samr_QueryDisplayInfo(pipes_struct *p, DEBUG(5, ("_samr_QueryDisplayInfo: %d\n", __LINE__)); - *r->out.total_size = total_data_size; + *r->out.total_size = num_account * struct_size; *r->out.returned_size = temp_size; return status; |