mirror of
https://git.openafs.org/openafs.git
synced 2025-01-22 17:00:15 +00:00
ntohs ubik header size
The 'size' field in the ubik header is only 16-bits wide, so we should
be using ntohs to read it, not ntohl. The database checking utilities
for the prdb and kadb were still using ntohl (vldb was fixed by
591f9b6de9
).
Change-Id: Ic3894f5ae78ff05279e87b364841c5f6dfdf803c
Reviewed-on: http://gerrit.openafs.org/5466
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
This commit is contained in:
parent
4d4cd3cd08
commit
e69714739f
@ -55,7 +55,7 @@ readUbikHeader(void)
|
||||
}
|
||||
|
||||
uheader.magic = ntohl(uheader.magic);
|
||||
uheader.size = ntohl(uheader.size);
|
||||
uheader.size = ntohs(uheader.size);
|
||||
uheader.version.epoch = ntohl(uheader.version.epoch);
|
||||
uheader.version.counter = ntohl(uheader.version.counter);
|
||||
|
||||
|
@ -210,7 +210,7 @@ readUbikHeader(struct misc_data *misc)
|
||||
}
|
||||
|
||||
uheader.magic = ntohl(uheader.magic);
|
||||
uheader.size = ntohl(uheader.size);
|
||||
uheader.size = ntohs(uheader.size);
|
||||
uheader.version.epoch = ntohl(uheader.version.epoch);
|
||||
uheader.version.counter = ntohl(uheader.version.counter);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user