From 104c419345a42a9a02ae25df482f449dc41a6380 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 26 Mar 2010 14:40:05 +0100 Subject: s4-torture: Disable setting REG_BINARY printer data with size 0. Signed-off-by: Jim McDonough --- source4/torture/rpc/spoolss.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source4/torture') diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c index 12dc8240cf..af7e9e96e0 100644 --- a/source4/torture/rpc/spoolss.c +++ b/source4/torture/rpc/spoolss.c @@ -5026,6 +5026,10 @@ static bool test_SetPrinterDataEx_matrix(struct torture_context *tctx, torture_warning(tctx, "samba3 does not handle 4 byte emtpy REG_MULTI_SZ buffers"); continue; } + if ((types[t] == REG_BINARY) && s == 0) { + torture_warning(tctx, "samba3 does not handle emtpy REG_BINARY buffers"); + continue; + } } switch (types[t]) { -- cgit