diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-08-08 11:29:28 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-08-08 18:29:57 +0000 |
commit | 24da9a86ecce68d26fb8f3e9f6689910d7f9f973 (patch) | |
tree | c46150ead14bdd5785d0dbeb7fd3498a873f7c0f | |
parent | 6f104a0ffbfe2f01bb2b002aea91ea336daf8bf6 (diff) |
Don't subtract 4 from the length passed to update_crc10_by_bytes_iuup().
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>
-rw-r--r-- | epan/dissectors/packet-iuup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-iuup.c b/epan/dissectors/packet-iuup.c index d5315a8d6e..e3e27f4349 100644 --- a/epan/dissectors/packet-iuup.c +++ b/epan/dissectors/packet-iuup.c @@ -582,7 +582,7 @@ update_crc10_by_bytes_iuup(tvbuff_t *tvb, int offset, int length) 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; |