summaryrefslogtreecommitdiffstats
path: root/source4/torture
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2013-12-04 14:01:50 +0100
committerMichael Adam <obnox@samba.org>2013-12-06 01:14:09 +0100
commit09cc58c1a7ffa29b509a688ab011503ebc7fd660 (patch)
tree0325f60a22fb6d43ea15692c347b7150ac359742 /source4/torture
parentef2cd51586a359d192ae1d07898d9e10cb5fb1b0 (diff)
downloadsamba-09cc58c1a7ffa29b509a688ab011503ebc7fd660.tar.gz
samba-09cc58c1a7ffa29b509a688ab011503ebc7fd660.tar.xz
samba-09cc58c1a7ffa29b509a688ab011503ebc7fd660.zip
s4-torture: Make sure handles are correctly initialized.
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/rpc/spoolss.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c
index d216e07aeb5..e795a709c9b 100644
--- a/source4/torture/rpc/spoolss.c
+++ b/source4/torture/rpc/spoolss.c
@@ -4970,7 +4970,7 @@ static bool test_GetDriverInfo_winreg(struct torture_context *tctx,
struct policy_handle *hive_handle,
const char *server_name_slash)
{
- WERROR result;
+ WERROR result = WERR_OK;
union spoolss_DriverInfo info;
const char *driver_key;
struct policy_handle key_handle;
@@ -4987,6 +4987,8 @@ static bool test_GetDriverInfo_winreg(struct torture_context *tctx,
const char *driver_version;
const char *inbox_driver_version;
+ ZERO_STRUCT(key_handle);
+
torture_comment(tctx, "Testing Driver Info and winreg consistency\n");
driver_key = talloc_asprintf(tctx, "%s\\%s\\Drivers\\Version-%d\\%s",