Revert "viced: avoid crash if missing volume header"

This reverts commit 2b40e6d2ab

Change-Id: I9df0fd4fa6232286babdf64da54d491d2ec1e91a
Reviewed-on: http://gerrit.openafs.org/7321
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
This commit is contained in:
Jeffrey Altman 2012-05-02 19:32:22 -07:00 committed by Derrick Brashear
parent ae5ad93799
commit 200a02f69a

View File

@ -244,7 +244,7 @@ SetVolumeSync(struct AFSVolSync *async, Volume * avol)
FS_LOCK;
/* date volume instance was created */
if (async) {
if (avol && avol->header)
if (avol)
async->spare1 = avol->header->diskstuff.creationDate;
else
async->spare1 = 0;