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:
Edward Tomasz Napierala 2010-06-03 13:45:27 +00:00
parent 019b32dabd
commit ce9d79aa61

View File

@ -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));