]> git.michaelhowe.org Git - packages/o/openafs.git/commit
butc: Init volheader before using it for hton
authorSimon Wilkinson <sxw@your-file-system.com>
Mon, 4 Mar 2013 16:34:20 +0000 (16:34 +0000)
committerDerrick Brashear <shadow@your-file-system.com>
Tue, 12 Mar 2013 13:51:32 +0000 (06:51 -0700)
commit21166744bf15f13bc04c25d68a28fe803a960b0a
treeb0c4c2c90822a70b67ee4b49ed7a0a91b8059707
parentcfeda375fd4155a2f8a01717e8733be937fa7a48
butc: Init volheader before using it for hton

When converting a volume header from host to network order, make
sure that any unused fields in the structure are zero'd, so we don't
end up filling them with stack garbage in the network version of
the structure.

Caught by coverity (#985956)

Change-Id: I3e039ffcb102a97afeb0e2223de12523f53b0a67
Reviewed-on: http://gerrit.openafs.org/9548
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/butc/dump.c