Fix initialization of length and checksum.

Reported by:	Kevin Thompson