ptserver: Zero ubik header before writing to it
authorSimon Wilkinson <sxw@your-file-system.com>
Tue, 26 Feb 2013 12:30:00 +0000 (12:30 +0000)
committerJeffrey Altman <jaltman@your-file-system.com>
Wed, 27 Feb 2013 01:19:40 +0000 (17:19 -0800)
commit96131593b329a319b22368a9ef37788fb4e5d4f4
tree6fbc7170cba7ea770dffe616b948adab00554e38
parent5d42398298ad4af91a08a08ce607754f644b37dc
ptserver: Zero ubik header before writing to it

When using pt_util's ubik shim, if we're creating a new ubik label
make sure to zero the whole structure before writing it out to disk.
Otherwise we get a shorts worth of stack garbage in the resulting
file.

Caught by coverity (#986010)

Change-Id: I0abb8b7968d4f25c97dc0927d63dd01099b829b7
Reviewed-on: http://gerrit.openafs.org/9274
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Reviewed-by: Chas Williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/ptserver/ptubik.c