From 22855190437d142c38b2d09539c63b474132a556 Mon Sep 17 00:00:00 2001 From: Aurelien Aptel Date: Fri, 4 Mar 2016 10:05:22 +0100 Subject: [PATCH] s3,s4 torture/denytest: fix possible infinite loop Signed-off-by: Aurelien Aptel Reviewed-by: Alexander Bokovoy Reviewed-by: David Disseldorf Autobuild-User(master): Alexander Bokovoy Autobuild-Date(master): Fri Mar 4 21:23:45 CET 2016 on sn-devel-144 --- source3/torture/denytest.c | 2 +- source4/torture/basic/denytest.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/torture/denytest.c b/source3/torture/denytest.c index 5b0eeec2fa7..87f06618cea 100644 --- a/source3/torture/denytest.c +++ b/source3/torture/denytest.c @@ -76,7 +76,7 @@ static const char *resultstr(enum deny_result res) {A_W, "W"}, {A_RW,"RW"}}; int i; - for (i=0;ARRAY_SIZE(results);i++) { + for (i=0;i