git://git.openafs.org
/
openafs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
viced: avoid crash if missing volume header
[openafs.git]
/
src
/
viced
/
afsfileprocs.c
diff --git
a/src/viced/afsfileprocs.c
b/src/viced/afsfileprocs.c
index
69aff57
..
7702c6a
100644
(file)
--- 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;