diff --git a/src/afs/afs_buffer.c b/src/afs/afs_buffer.c index 4399473585..2220ae301c 100644 --- a/src/afs/afs_buffer.c +++ b/src/afs/afs_buffer.c @@ -379,6 +379,8 @@ afs_newslot(struct dcache *adc, afs_int32 apage, struct buffer *lp) AFS_STATS(afs_stats_cmperf.bufFlushDirty++); } + /* Zero out the data so we don't leak something we shouldn't. */ + memset(lp->data, 0, AFS_BUFFER_PAGESIZE); /* Now fill in the header. */ lp->fid = adc->index; afs_copy_inode(&lp->inode, &adc->f.inode);