s3:rpc_server/svcctl: fix valgrind bug in _svcctl_QueryServiceObjectSecurity()
commit825e13bcf3215b69485afc3a154417ae0ad6a4ab
authorStefan Metzmacher <metze@samba.org>
Thu, 16 Jun 2011 10:47:22 +0000 (16 12:47 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 26 Jul 2011 19:51:12 +0000 (26 21:51 +0200)
treef6b0b443604a05b0c95752591916c56abae9827a
parent22b392ab6eac0c8e2dcdefe2229410d7a00de7ed
s3:rpc_server/svcctl: fix valgrind bug in _svcctl_QueryServiceObjectSecurity()

r->out.buffer needs to stay in its size, as it will be marshalled completely.
As it's preallocated and initialized with zeros, we just need to copy
the payload into it, even if it's smaller than the offered buffer size.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Jun 16 14:15:47 CEST 2011 on sn-devel-104
(cherry picked from commit 67512152c007bb186e4fd8dac5d1aab89bce0689)

The last 3 patches address bug #8264 (svcctl valgrind fixes).
(cherry picked from commit 355ffd89e54dea15bf94b93f59c321109e951cad)
source3/rpc_server/svcctl/srv_svcctl_nt.c