From: Nickolai Zeldovich Date: Sat, 2 Dec 2000 17:52:58 +0000 (+0000) Subject: check-flushvol-args-20001202 X-Git-Tag: BP-openafs-stable-1_0_x~2 X-Git-Url: https://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=bd931f3d053a62733e9c269fc7e2c545f8a0962f check-flushvol-args-20001202 check args for flushvol --- diff --git a/src/afs/afs_pioctl.c b/src/afs/afs_pioctl.c index ef73203..fe5c9b5 100644 --- a/src/afs/afs_pioctl.c +++ b/src/afs/afs_pioctl.c @@ -2421,6 +2421,8 @@ struct AFS_UCRED *acred; afs_int32 cell, volume; AFS_STATCNT(PFlushVolumeData); + if (!avc) + return EINVAL; if ( !afs_resourceinit_flag ) /* afs deamons havn't started yet */ return EIO; /* Inappropriate ioctl for device */