From: Jeffrey Altman Date: Fri, 9 Apr 2004 06:57:39 +0000 (+0000) Subject: remove-extra-compare-20040408 X-Git-Tag: openafs-devel-1_3_64~70 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=02deda384d77262b733437872833ce1fc0e91234;p=packages%2Fo%2Fopenafs.git remove-extra-compare-20040408 do not check for i < 2000 and i < MAXKTCTICKETLEN --- diff --git a/src/afs/afs_pioctl.c b/src/afs/afs_pioctl.c index f4e77c0a9..b76e61e64 100644 --- a/src/afs/afs_pioctl.c +++ b/src/afs/afs_pioctl.c @@ -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));