mirror of
https://git.openafs.org/openafs.git
synced 2025-01-21 00:10:15 +00:00
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 <buildbot@rampaginggeek.com> Reviewed-by: Derrick Brashear <shadow@dementix.org>
This commit is contained in:
parent
94a8ce970d
commit
ae5ad93799
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user