diff options
author | Günther Deschner <gd@samba.org> | 2009-04-08 23:21:41 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-04-08 23:23:17 +0200 |
commit | d8a6ea8141fba4876b6674806b629748ecf41876 (patch) | |
tree | fe1e616e2df3df95c7cf9e90248a73a655e7612e /source3 | |
parent | ccd293ba0e7eede1115c6f2f7de36bc38b59c02f (diff) | |
download | samba-d8a6ea8141fba4876b6674806b629748ecf41876.tar.gz samba-d8a6ea8141fba4876b6674806b629748ecf41876.tar.bz2 samba-d8a6ea8141fba4876b6674806b629748ecf41876.zip |
s3-svcctl: Fix _svcctl_EnumServicesStatusW (again).
The final plan is to use the same macro based code that we have in spoolss to
handle the buffers and calculate the buffer-sizes.
Guenther
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpc_server/srv_svcctl_nt.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/rpc_server/srv_svcctl_nt.c b/source3/rpc_server/srv_svcctl_nt.c index ddfe0df10b..1850dcb612 100644 --- a/source3/rpc_server/srv_svcctl_nt.c +++ b/source3/rpc_server/srv_svcctl_nt.c @@ -466,9 +466,7 @@ WERROR _svcctl_EnumServicesStatusW(pipes_struct *p, } blob = ndr_push_blob(ndr); - if (blob.length >= r->in.offered) { - memcpy(r->out.service, blob.data, r->in.offered); - } + memcpy(r->out.service, blob.data, r->in.offered); } *r->out.needed = (buffer_size > r->in.offered) ? buffer_size : r->in.offered; |