s4-torture: Disable setting REG_BINARY printer data with size 0.
authorAndreas Schneider <asn@redhat.com>
Fri, 26 Mar 2010 13:40:05 +0000 (14:40 +0100)
committerSimo Sorce <idra@samba.org>
Tue, 27 Jul 2010 14:27:06 +0000 (10:27 -0400)
Signed-off-by: Jim McDonough <jmcd@samba.org>
source4/torture/rpc/spoolss.c

index 12dc8240cf42352a49b12f52f57933b15b2dece9..af7e9e96e06b88b3c00dacbe0c511dbed736ab95 100644 (file)
@@ -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]) {