remove-extra-compare-20040408

do not check for i < 2000 and i < MAXKTCTICKETLEN
This commit is contained in:
Jeffrey Altman 2004-04-09 06:57:39 +00:00 committed by Jeffrey Altman
parent efd0c52372
commit 02deda384d

View File

@ -1382,10 +1382,8 @@ DECL_PIOCTL(PSetTokens)
memcpy((char *)&i, ain, sizeof(afs_int32));
ain += sizeof(afs_int32);
stp = ain; /* remember where the ticket is */
if (i < 0 || i > 2000)
if (i < 0 || i > MAXKTCTICKETLEN)
return EINVAL; /* malloc may fail */
if (i > MAXKTCTICKETLEN)
return EINVAL;
stLen = i;
ain += i; /* skip over ticket */
memcpy((char *)&i, ain, sizeof(afs_int32));