summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-04-08 23:21:41 +0200
committerGünther Deschner <gd@samba.org>2009-04-08 23:23:17 +0200
commitd8a6ea8141fba4876b6674806b629748ecf41876 (patch)
treefe1e616e2df3df95c7cf9e90248a73a655e7612e
parentccd293ba0e7eede1115c6f2f7de36bc38b59c02f (diff)
downloadsamba-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
-rw-r--r--source3/rpc_server/srv_svcctl_nt.c4
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;