summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-04-27 17:52:47 +0200
committerGünther Deschner <gd@samba.org>2010-04-27 17:56:50 +0200
commit158d41b6b4264e7ece93cf77a15e70ccbf8673b8 (patch)
tree062938234e142b92ba8bae2b34e135a74fbde28e
parent7532640a74bbdd3c815e29732785350e9622925e (diff)
downloadsamba-158d41b6b4264e7ece93cf77a15e70ccbf8673b8.tar.gz
samba-158d41b6b4264e7ece93cf77a15e70ccbf8673b8.tar.bz2
samba-158d41b6b4264e7ece93cf77a15e70ccbf8673b8.zip
s4-smbtorture: make sure to zero the add driver info 8 struct before adding drivers.
Guenther
-rw-r--r--source4/torture/rpc/spoolss.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c
index a0adff3696..7d0038e387 100644
--- a/source4/torture/rpc/spoolss.c
+++ b/source4/torture/rpc/spoolss.c
@@ -7547,6 +7547,8 @@ static bool test_add_driver_arg(struct torture_context *tctx,
uint32_t add_flags = APD_COPY_NEW_FILES;
uint32_t delete_flags = 0;
+ ZERO_STRUCT(info8);
+
torture_comment(tctx, "Testing PrinterDriver%s '%s' for environment '%s'\n",
d->ex ? "Ex" : "", d->info8.driver_name, d->local.environment);