summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorAndreas Schneider <asn@redhat.com>2010-03-26 14:40:05 +0100
committerSimo Sorce <idra@samba.org>2010-07-27 10:27:06 -0400
commit104c419345a42a9a02ae25df482f449dc41a6380 (patch)
tree4a5c51510a431ae8e725f53e1e1de8a0bf0a8bec /source4/torture
parent6446c75f70fcb80c9d66fd7d6d9cfdd01157c385 (diff)
downloadsamba-104c419345a42a9a02ae25df482f449dc41a6380.tar.gz
samba-104c419345a42a9a02ae25df482f449dc41a6380.tar.bz2
samba-104c419345a42a9a02ae25df482f449dc41a6380.zip
s4-torture: Disable setting REG_BINARY printer data with size 0.
Signed-off-by: Jim McDonough <jmcd@samba.org>
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/rpc/spoolss.c4
1 files changed, 4 insertions, 0 deletions
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]) {