The 'acl_cnt' field is unsigned; no point in checking if it's >= 0.
Found with: Coverity Prevent CID: 3688
This commit is contained in:
parent
019b32dabd
commit
ce9d79aa61
@ -92,7 +92,7 @@ acl_copy_acl_into_oldacl(const struct acl *source, struct oldacl *dest)
|
||||
{
|
||||
int i;
|
||||
|
||||
if (source->acl_cnt < 0 || source->acl_cnt > OLDACL_MAX_ENTRIES)
|
||||
if (source->acl_cnt > OLDACL_MAX_ENTRIES)
|
||||
return (EINVAL);
|
||||
|
||||
bzero(dest, sizeof(*dest));
|
||||
|
Loading…
x
Reference in New Issue
Block a user