must reset checksum before reading next frame
@@ -254,8 +254,8 @@ private void verifyContentChecksum() throws IOException {
if (expectedHash != ByteUtils.fromLittleEndian(checksum)) {
throw new IOException("content checksum mismatch.");
}
- contentHash.reset();
}
+ contentHash.reset();
}
private int readOneByte() throws IOException {
