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>
This commit is contained in:
Jiri Novak 2016-12-22 11:37:19 +01:00 committed by Michael Mann
parent b97af3af2c
commit 5c1b898a43
1 changed files with 2 additions and 0 deletions

View File

@ -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)