The length passed to it already has 4 subtracted from it by the caller.
Change-Id: I6e047c6c4c4cd5220be923b4663088b6b275d768
Reviewed-on: https://code.wireshark.org/review/3511
Reviewed-by: Guy Harris <guy@alum.mit.edu>
guint16 extra_16bits;
guint8 extra_8bits[2];
- crc10 = update_crc10_by_bytes_tvb(0, tvb, offset + 2, length - 4);
+ crc10 = update_crc10_by_bytes_tvb(0, tvb, offset + 2, length);
extra_16bits = tvb_get_ntohs(tvb, offset) & 0x3FF;
extra_8bits[0] = extra_16bits >> 2;
extra_8bits[1] = (extra_16bits << 6) & 0xFF;