mirror of
https://git.openafs.org/openafs.git
synced 2025-02-01 14:07:39 +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));
|
memcpy((char *)&i, ain, sizeof(afs_int32));
|
||||||
ain += sizeof(afs_int32);
|
ain += sizeof(afs_int32);
|
||||||
stp = ain; /* remember where the ticket is */
|
stp = ain; /* remember where the ticket is */
|
||||||
if (i < 0 || i > 2000)
|
if (i < 0 || i > MAXKTCTICKETLEN)
|
||||||
return EINVAL; /* malloc may fail */
|
return EINVAL; /* malloc may fail */
|
||||||
if (i > MAXKTCTICKETLEN)
|
|
||||||
return EINVAL;
|
|
||||||
stLen = i;
|
stLen = i;
|
||||||
ain += i; /* skip over ticket */
|
ain += i; /* skip over ticket */
|
||||||
memcpy((char *)&i, ain, sizeof(afs_int32));
|
memcpy((char *)&i, ain, sizeof(afs_int32));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user