mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +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:
parent
a6593cfb67
commit
2285519043
@ -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 "*";
|
||||
|
@ -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 "*";
|
||||
|
Loading…
Reference in New Issue
Block a user