X-Git-Url: http://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=src%2Fafs%2Fafs_pioctl.c;h=7f0329adff6a13c688b746c6243918f329543d0b;hp=cde09d790e301fd709a46ce79219a76b359b322f;hb=e222b08c4049dae95475eda2d5c54bd43dd45e2e;hpb=0a5e878aa0a71c4dfaef1806744ed78bcc13b9f4 diff --git a/src/afs/afs_pioctl.c b/src/afs/afs_pioctl.c index cde09d7..7f0329a 100644 --- a/src/afs/afs_pioctl.c +++ b/src/afs/afs_pioctl.c @@ -820,6 +820,10 @@ afs_xioctl(afs_proc_t *p, const struct ioctl_args *uap, register_t *retval) #if defined(AFS_NBSD50_ENV) if ((fd = fd_getfile(SCARG(uap, fd))) == NULL) return (EBADF); +#elif defined(AFS_FBSD100_ENV) + if ((uap->fd >= fdp->fd_nfiles) + || ((fd = fdp->fd_ofiles[uap->fd].fde_file) == NULL)) + return EBADF; #else if ((uap->fd >= fdp->fd_nfiles) || ((fd = fdp->fd_ofiles[uap->fd]) == NULL))