Revert "viced: avoid crash if missing volume header"
authorJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 3 May 2012 02:32:22 +0000 (19:32 -0700)
committerDerrick Brashear <shadow@dementix.org>
Thu, 3 May 2012 10:46:55 +0000 (03:46 -0700)
This reverts commit 2b40e6d2abbf842e6823661b94cfa9aa833b9990

Change-Id: I9df0fd4fa6232286babdf64da54d491d2ec1e91a
Reviewed-on: http://gerrit.openafs.org/7321
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>

src/viced/afsfileprocs.c

index 7702c6a..69aff57 100644 (file)
@@ -244,7 +244,7 @@ SetVolumeSync(struct AFSVolSync *async, Volume * avol)
     FS_LOCK;
     /* date volume instance was created */
     if (async) {
-       if (avol && avol->header)
+       if (avol)
            async->spare1 = avol->header->diskstuff.creationDate;
        else
            async->spare1 = 0;