diff options
author | Günther Deschner <gd@samba.org> | 2010-03-05 00:56:52 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-03-05 15:18:17 +0100 |
commit | c5fb6551d92f50ee7b29d330b4458e8a4224be20 (patch) | |
tree | 786ec5fcc9040f04b37cf29f23484d004e4b6afb | |
parent | 65f453ce71fa5911aa5f99b80df9834135052d4b (diff) | |
download | samba-c5fb6551d92f50ee7b29d330b4458e8a4224be20.tar.gz samba-c5fb6551d92f50ee7b29d330b4458e8a4224be20.tar.bz2 samba-c5fb6551d92f50ee7b29d330b4458e8a4224be20.zip |
s4-smbtorture: add more paranoid checks for REG_DWORD SetPrinterDataEx tests.
Guenther
-rw-r--r-- | source4/torture/rpc/spoolss.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c index e03ebc588c..2e3e374ed7 100644 --- a/source4/torture/rpc/spoolss.c +++ b/source4/torture/rpc/spoolss.c @@ -3290,7 +3290,6 @@ static bool test_SetPrinterDataEx_matrix(struct torture_context *tctx, REG_DWORD, REG_BINARY }; - uint32_t value = 12345678; const char *str = "abcdefghijklmnopqrstuvwxzy"; int i, t, s; @@ -3309,20 +3308,12 @@ static bool test_SetPrinterDataEx_matrix(struct torture_context *tctx, uint8_t *data_out; uint32_t needed, offered = 0; - if (types[t] == REG_DWORD) { - s = 0xffff; - } - switch (types[t]) { case REG_BINARY: + case REG_DWORD: data = blob; offered = blob.length; break; - case REG_DWORD: - data = data_blob(NULL, 4); - SIVAL(data.data, 0, value); - offered = 4; - break; case REG_SZ: torture_assert(tctx, reg_string_to_val(tctx, lp_iconv_convenience(tctx->lp_ctx), |