From 48cdca0d474cc6ae6fa6be88580d5f2fbcb0dd84 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 9 Mar 2010 16:10:40 +0100 Subject: s4-smbtorture: fix uninitialized variable in winreg QueryValue call. Guenther --- source4/torture/rpc/spoolss.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source4') diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c index 909c37246d..f83d3b5906 100644 --- a/source4/torture/rpc/spoolss.c +++ b/source4/torture/rpc/spoolss.c @@ -3353,6 +3353,7 @@ static bool test_winreg_QueryValue(struct torture_context *tctx, r.in.type = &type; r.in.data_size = &data_size; r.in.data_length = &data_length; + r.in.data = talloc_zero_array(tctx, uint8_t, *r.in.data_size); r.out.type = &type; r.out.data = talloc_zero_array(tctx, uint8_t, *r.in.data_size); r.out.data_size = &data_size; -- cgit