diff --git a/src/kauth/rebuild.c b/src/kauth/rebuild.c index 9c1d0db76e..d6dad28c7a 100644 --- a/src/kauth/rebuild.c +++ b/src/kauth/rebuild.c @@ -69,7 +69,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); diff --git a/src/ptserver/db_verify.c b/src/ptserver/db_verify.c index 5966549d20..e99863902b 100644 --- a/src/ptserver/db_verify.c +++ b/src/ptserver/db_verify.c @@ -217,7 +217,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);