diff options
author | Jiri Novak <j.novak@netsystem.cz> | 2016-12-22 11:37:19 +0100 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2016-12-22 19:35:47 +0000 |
commit | 5c1b898a4398c994f59d47db875f8476a52d9652 (patch) | |
tree | 72daad6d5955850668229545c9a18f5b52c6e280 /epan/dissectors/packet-rtp.c | |
parent | b97af3af2c45f39a1005d4a3786d115800cdb1b0 (diff) | |
download | wireshark-5c1b898a4398c994f59d47db875f8476a52d9652.tar.gz |
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 <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-rtp.c')
-rw-r--r-- | epan/dissectors/packet-rtp.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) |