summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-02-07 00:21:46 +0100
committerGünther Deschner <gd@samba.org>2009-02-07 00:46:09 +0100
commit6b19c396970f527fc0527c736acdce22de2917ae (patch)
treea722f6d320982e391370c1f64041bff49c600ddc /source4/torture/rpc
parent100aad0ddff4e817de99c5d8e0f51ff730d55d58 (diff)
downloadsamba-6b19c396970f527fc0527c736acdce22de2917ae.tar.gz
samba-6b19c396970f527fc0527c736acdce22de2917ae.tar.bz2
samba-6b19c396970f527fc0527c736acdce22de2917ae.zip
s4-smbtorture: fix valgrind warnings in RPC-SPOOLSS_WIN test.
Guenther
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/spoolss_win.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/torture/rpc/spoolss_win.c b/source4/torture/rpc/spoolss_win.c
index ed2bdc7934..ab5adefc1c 100644
--- a/source4/torture/rpc/spoolss_win.c
+++ b/source4/torture/rpc/spoolss_win.c
@@ -357,6 +357,7 @@ static bool test_EnumPrinterKey(struct torture_context *tctx,
epk.in.key_name = talloc_strdup(tctx, key);
epk.in.key_buffer_size = 0;
epk.out.needed = &needed;
+ epk.out.key_buffer = talloc_array(tctx, uint16_t, 0);
status = dcerpc_spoolss_EnumPrinterKey(p, tctx, &epk);
torture_assert_ntstatus_ok(tctx, status, "EnumPrinterKey failed");
@@ -398,6 +399,7 @@ static bool test_EnumPrinterDataEx(struct torture_context *tctx,
epde.in.offered = 0;
epde.out.needed = &needed;
epde.out.count = &count;
+ epde.out.buffer = talloc_array(tctx, uint8_t, 0);
status = dcerpc_spoolss_EnumPrinterDataEx(p, tctx, &epde);
torture_assert_ntstatus_ok(tctx, status, "EnumPrinterDataEx failed.");