s4-smbtorture: fix uninitialized variable in winreg QueryValue call.
authorGünther Deschner <gd@samba.org>
Tue, 9 Mar 2010 15:10:40 +0000 (16:10 +0100)
committerGünther Deschner <gd@samba.org>
Tue, 9 Mar 2010 15:14:39 +0000 (16:14 +0100)
Guenther

source4/torture/rpc/spoolss.c

index 909c37246dd4ebb5d7b854c2ee252d1a1406697d..f83d3b59069aa814867f78d45fe4f3f22ec8c63b 100644 (file)
@@ -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;