mirror of
https://git.openafs.org/openafs.git
synced 2025-01-21 00:10:15 +00:00
remove-extra-compare-20040408
do not check for i < 2000 and i < MAXKTCTICKETLEN
This commit is contained in:
parent
efd0c52372
commit
02deda384d
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user