From 5c1b898a4398c994f59d47db875f8476a52d9652 Mon Sep 17 00:00:00 2001 From: Jiri Novak Date: Thu, 22 Dec 2016 11:37:19 +0100 Subject: packet-rtp.c: Fix of decoding RTP over TCP During patch modification in https://code.wireshark.org/review/#/c/19293/ we made mistake :-( Change-Id: I2ff65170dbcf3b5c4d27d6d7c629092d5080ed28 Reviewed-on: https://code.wireshark.org/review/19382 Reviewed-by: Michael Mann --- epan/dissectors/packet-rtp.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'epan/dissectors/packet-rtp.c') diff --git a/epan/dissectors/packet-rtp.c b/epan/dissectors/packet-rtp.c index 63e194d5cc..c64ece61d9 100644 --- a/epan/dissectors/packet-rtp.c +++ b/epan/dissectors/packet-rtp.c @@ -1860,6 +1860,8 @@ dissect_rtp_rfc4571(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* d if ( packet_len < 2 ) return 0; + packet_len -= 2; + /* Is packet longer than length item */ rtp_packet_len = tvb_get_ntohs( tvb, offset ); if (packet_len != rtp_packet_len) -- cgit v1.2.1