diff options
author | Andreas Schneider <asn@samba.org> | 2013-12-04 14:01:53 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2013-12-06 01:14:09 +0100 |
commit | b871c3907afe666ff7195c2906b43011138e4bf7 (patch) | |
tree | 68c7a1aad33fd878a6675aeaf03da2c6de970b99 /source4 | |
parent | 34f498525cb7f6007c7d757e58fcaed7a607a4a2 (diff) | |
download | samba-b871c3907afe666ff7195c2906b43011138e4bf7.tar.gz samba-b871c3907afe666ff7195c2906b43011138e4bf7.tar.xz samba-b871c3907afe666ff7195c2906b43011138e4bf7.zip |
s4-torture: Fix out of bound array access.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/rpc/spoolss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c index 5fbdbb8ca4..e6458878d5 100644 --- a/source4/torture/rpc/spoolss.c +++ b/source4/torture/rpc/spoolss.c @@ -681,7 +681,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[8][j]; + union spoolss_DriverInfo *ref = &ctx->drivers[7][j]; switch (level) { case 1: |