]> git.michaelhowe.org Git - packages/o/openafs.git/commit
viced: move host tmay fields before index
authorJeffrey Altman <jaltman@your-file-system.com>
Wed, 11 Jun 2014 23:37:34 +0000 (19:37 -0400)
committerD Brashear <shadow@your-file-system.com>
Wed, 29 Oct 2014 21:30:42 +0000 (17:30 -0400)
commitfb67a8d4ef62387f8ed7d1ffc373a07475e70588
tree75a8ab7953188930d7464be8c845f07ca513676f
parent235e88a36c1c26b5e5160510ce3b63e61d597e19
viced: move host tmay fields before index

The index field and those after it in struct host do not get zeroed
when a host is reused.  The placement of the tmay fields after index
in commit 9a0a8ca4d186cf953b87d9fae1a35f66090b060c results in the
use of uninitialized memory.

This change moves the tmay fields before index which permits
the HOST_TO_ZERO() macro to compute the correct size to be memset()
to zero.

Change-Id: I1f93bebb23c99eaa7826dafa8cd7497d1b49bb53
Reviewed-on: http://gerrit.openafs.org/11286
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Reviewed-by: D Brashear <shadow@your-file-system.com>
src/viced/host.h