s3:rpc_server/svcctl: fix valgrind bugs in _svcctl_QueryServiceConfig2W()
commit22b392ab6eac0c8e2dcdefe2229410d7a00de7ed
authorStefan Metzmacher <metze@samba.org>
Thu, 16 Jun 2011 10:34:42 +0000 (16 12:34 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 26 Jul 2011 19:51:09 +0000 (26 21:51 +0200)
tree2aa5f588f0454fe34d0262a8b87371c804ff0db9
parent410219be0346043a954a4a367a839941bb41330a
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)
(cherry picked from commit 04b62ec0168e84c00fd08f0695b94ec5ca80ba88)
source3/rpc_server/svcctl/srv_svcctl_nt.c