From 2b40e6d2abbf842e6823661b94cfa9aa833b9990 Mon Sep 17 00:00:00 2001 From: Michael Meffie Date: Tue, 1 May 2012 10:09:44 -0400 Subject: [PATCH] viced: avoid crash if missing volume header Avoid a fileserver crash if the volume header is missing in SetVolumeSync. Change-Id: I509081306402fc7147d0624aa1181330b9fa9fc5 --- src/viced/afsfileprocs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 1.9.4