summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-03-11 00:07:00 +0100
committerGünther Deschner <gd@samba.org>2010-03-11 00:09:04 +0100
commit3fd5ac63443717fd596546602d2e5477923f8f3d (patch)
tree77eed7dca88eecc32943627a43baf985cfa75e39
parent20d85d5d546ade003d70ca727c012785ba9f9b4b (diff)
downloadsamba-3fd5ac63443717fd596546602d2e5477923f8f3d.tar.gz
samba-3fd5ac63443717fd596546602d2e5477923f8f3d.tar.bz2
samba-3fd5ac63443717fd596546602d2e5477923f8f3d.zip
s4-smbtorture: only look at DATA_BLOB pointer when einfo[0].data_length > 0.
Guenther
-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 4ff79f2631..c66ca848f3 100644
--- a/source4/torture/rpc/spoolss.c
+++ b/source4/torture/rpc/spoolss.c
@@ -3491,7 +3491,9 @@ static bool test_SetPrinterDataEx_matrix(struct torture_context *tctx,
torture_assert_int_equal(tctx, einfo[0].value_name_len, strlen_m_term(value_name)*2, "unexpected value_name_len");
torture_assert_int_equal(tctx, einfo[0].type, types[t], "type mismatch");
torture_assert_int_equal(tctx, einfo[0].data_length, offered, "size mismatch");
- torture_assert_mem_equal(tctx, einfo[0].data->data, data.data, offered, "buffer mismatch");
+ if (einfo[0].data_length > 0) {
+ torture_assert_mem_equal(tctx, einfo[0].data->data, data.data, offered, "buffer mismatch");
+ }
if (winreg_pipe && hive_handle) {
const char *printer_key;