From: Jeffrey Altman Date: Thu, 3 May 2012 02:32:22 +0000 (-0700) Subject: Revert "viced: avoid crash if missing volume header" X-Git-Tag: upstream/1.8.0_pre1^2~2469 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=200a02f69a7f2ac1604c42e28498171c81df9b43;p=packages%2Fo%2Fopenafs.git Revert "viced: avoid crash if missing volume header" This reverts commit 2b40e6d2abbf842e6823661b94cfa9aa833b9990 Change-Id: I9df0fd4fa6232286babdf64da54d491d2ec1e91a Reviewed-on: http://gerrit.openafs.org/7321 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- diff --git a/src/viced/afsfileprocs.c b/src/viced/afsfileprocs.c index 7702c6a47..69aff57c8 100644 --- a/src/viced/afsfileprocs.c +++ b/src/viced/afsfileprocs.c @@ -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;