From: Michael Meffie Date: Tue, 1 May 2012 14:09:44 +0000 (-0400) Subject: viced: avoid crash if missing volume header X-Git-Tag: openafs-stable-1_8_0pre1~2470 X-Git-Url: https://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=ae5ad937997ae6e29f81e4049451eda09c2efb6f viced: avoid crash if missing volume header Avoid a fileserver crash if the volume header is missing in SetVolumeSync. Change-Id: I509081306402fc7147d0624aa1181330b9fa9fc5 Reviewed-on: http://gerrit.openafs.org/7301 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- diff --git a/src/viced/afsfileprocs.c b/src/viced/afsfileprocs.c index 69aff57..7702c6a 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) + if (avol && avol->header) async->spare1 = avol->header->diskstuff.creationDate; else async->spare1 = 0;