diff options
-rw-r--r-- | source4/torture/rpc/spoolss.c | 4 |
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; |