vldb_check: ntohs ubik header size
authorAndrew Deason <adeason@sinenomine.net>
Mon, 21 Jun 2010 22:28:10 +0000 (17:28 -0500)
committerDerrick Brashear <shadow@dementia.org>
Tue, 22 Jun 2010 13:46:11 +0000 (06:46 -0700)
commit591f9b6de9ab3dc5c17ad41af0241527f7f04b31
tree9f8d2b0790d4b060f7aace5e422c6483ce0ad8c7
parent4a1efd664b08c96952d987ab8d7b5fd42c0a5526
vldb_check: ntohs ubik header size

The 'size' field in the ubik header is only 16-bits wide. So, we must
use ntohs to convert it, not ntohl. Without this, vldb_check would
emit false-positive "Ubik header size is 0" warnings.

Change-Id: Iaa06b6dc58b7812b359d6096c112e1f3897c60e2
Reviewed-on: http://gerrit.openafs.org/2226
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/vlserver/vldb_check.c