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)
committerKarolin Seeger <kseeger@samba.org>
Tue, 28 Jun 2011 18:40:39 +0000 (20:40 +0200)
commit04b62ec0168e84c00fd08f0695b94ec5ca80ba88
tree14b272da0776e8dc77c7ebccdd4c7a50c45cee69
parent7008fc0028993e98b335cf8533481073a5bd82df
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
(cherry picked from commit 11683ccf3e68606ecb1cdfa455f7921b119803c6)
source3/rpc_server/svcctl/srv_svcctl_nt.c