diff --git a/src/WINNT/afsd/cm_ioctl.c b/src/WINNT/afsd/cm_ioctl.c index c6230a426c..5322479d82 100644 --- a/src/WINNT/afsd/cm_ioctl.c +++ b/src/WINNT/afsd/cm_ioctl.c @@ -652,6 +652,7 @@ cm_IoctlSetVolumeStatus(struct cm_ioctl *ioctlp, struct cm_user *userp, cm_scach clientchar_t *strp; struct rx_connection * rxconnp; + memset(&storeStat, 0, sizeof(storeStat)); #ifdef AFS_FREELANCE_CLIENT if ( scp->fid.cell == AFS_FAKE_ROOT_CELL_ID && scp->fid.volume == AFS_FAKE_ROOT_VOL_ID ) { code = CM_ERROR_NOACCESS; diff --git a/src/afs/afs_pioctl.c b/src/afs/afs_pioctl.c index 948809d7d2..5b9a8fd081 100644 --- a/src/afs/afs_pioctl.c +++ b/src/afs/afs_pioctl.c @@ -2074,6 +2074,7 @@ DECL_PIOCTL(PSetVolumeStatus) AFS_STATCNT(PSetVolumeStatus); if (!avc) return EINVAL; + memset(&storeStat, 0, sizeof(storeStat)); tvp = afs_GetVolume(&avc->f.fid, areq, READ_LOCK); if (tvp) {