1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

s3,s4 torture/denytest: fix possible infinite loop

Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
Reviewed-by: David Disseldorf <ddis@suse.de>

Autobuild-User(master): Alexander Bokovoy <ab@samba.org>
Autobuild-Date(master): Fri Mar  4 21:23:45 CET 2016 on sn-devel-144
This commit is contained in:
Aurelien Aptel 2016-03-04 10:05:22 +01:00 committed by Alexander Bokovoy
parent a6593cfb67
commit 2285519043
2 changed files with 2 additions and 2 deletions

View File

@ -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<ARRAY_SIZE(results);i++) {
if (results[i].res == res) return results[i].name;
}
return "*";

View File

@ -80,7 +80,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<ARRAY_SIZE(results);i++) {
if (results[i].res == res) return results[i].name;
}
return "*";