s3:rpc_server/svcctl: fix valgrind bugs in _svcctl_QueryServiceConfig2W()
authorStefan Metzmacher <metze@samba.org>
Thu, 16 Jun 2011 10:34:42 +0000 (12:34 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 16 Jun 2011 10:40:14 +0000 (12:40 +0200)
commit11683ccf3e68606ecb1cdfa455f7921b119803c6
tree1727813f6e3a067d43ee05f452aad1eb9347b7ac
parent48de3e51eacbd1051f79dc99aaac8a4ec988fde5
s3:rpc_server/svcctl: fix valgrind bugs in _svcctl_QueryServiceConfig2W()

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.

If we always marshall the return buffer, we already have the needed
buffer size and don't need to call ndr_size_* functions.

metze
source3/rpc_server/svcctl/srv_svcctl_nt.c