diff options
-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) |