s4-torture: Fix test_EnumPrinterDrivers for level 8 printer drivers.
authorGünther Deschner <gd@samba.org>
Fri, 11 Nov 2016 15:32:20 +0000 (16:32 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 11 Nov 2016 21:57:23 +0000 (22:57 +0100)
Guenther

Pair-Programmed-With: Andreas Schneider <asn@samba.org>
Signed-off-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/torture/rpc/spoolss.c

index 28abd14b7de7467bbc4faeaff6c79349365fdb05..5045c87264fd1597db714b3be5ab33f4765fb8b2 100644 (file)
@@ -711,7 +711,7 @@ static bool test_EnumPrinterDrivers(struct torture_context *tctx,
 
                for (j=0;j<ctx->driver_count[level - 1];j++) {
                        union spoolss_DriverInfo *cur = &ctx->drivers[level - 1][j];
-                       union spoolss_DriverInfo *ref = &ctx->drivers[7][j];
+                       union spoolss_DriverInfo *ref = &ctx->drivers[8][j];
 
                        switch (level) {
                        case 1: