git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
94a8ce9
)
viced: avoid crash if missing volume header
author
Michael Meffie
<mmeffie@sinenomine.net>
Tue, 1 May 2012 14:09:44 +0000 (10:09 -0400)
committer
Derrick Brashear
<shadow@dementix.org>
Tue, 1 May 2012 15:04:01 +0000 (08:04 -0700)
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>
src/viced/afsfileprocs.c
patch
|
blob
|
history
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;