diff --git a/src/afs/afs_pioctl.c b/src/afs/afs_pioctl.c index 56824499d0..00a455f14a 100644 --- a/src/afs/afs_pioctl.c +++ b/src/afs/afs_pioctl.c @@ -1103,7 +1103,7 @@ afs_HandlePioctl(struct vnode *avp, afs_int32 acom, inSize = ablob->in_size; /* Do all range checking before continuing */ - if (inSize >= MAXPIOCTLTOKENLEN || inSize < 0 || ablob->out_size < 0) + if (inSize > MAXPIOCTLTOKENLEN || inSize < 0 || ablob->out_size < 0) return E2BIG; if (inSize > AFS_LRALLOCSIZE) {