diff --git a/src/afs/afs_pioctl.c b/src/afs/afs_pioctl.c index 4edeadac05..5ffb36626b 100644 --- a/src/afs/afs_pioctl.c +++ b/src/afs/afs_pioctl.c @@ -3949,7 +3949,7 @@ DECL_PIOCTL(PSetSPrefs) ssp = (struct setspref *)ainPtr; if (ainSize < (sizeof(struct setspref) - + sizeof(struct spref) * ssp->num_servers-1)) + + sizeof(struct spref) * (ssp->num_servers-1))) return EINVAL; afs_setsprefs(&(ssp->servers[0]), ssp->num_servers,