diff options
author | Nardi Ivan <nardi.ivan@gmail.com> | 2024-09-07 14:14:35 +0200 |
---|---|---|
committer | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2024-09-10 19:32:31 +0200 |
commit | def86ba0a9f090cebda3d2e521e22f5d8f2f0f35 (patch) | |
tree | c2a60ed6d8ec4d303bb7e9096f76493ee6a8266f /src/lib/protocols | |
parent | bc9472277d9beaf2201b3f43463c062f2fcf0b13 (diff) |
RTP: fix identification over TCP
We can access `flow->l4.udp` structure only with UDP flows...
Diffstat (limited to 'src/lib/protocols')
-rw-r--r-- | src/lib/protocols/rtp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/protocols/rtp.c b/src/lib/protocols/rtp.c index deaff776b..549f890e3 100644 --- a/src/lib/protocols/rtp.c +++ b/src/lib/protocols/rtp.c @@ -186,9 +186,11 @@ static void ndpi_rtp_search(struct ndpi_detection_module_struct *ndpi_struct, if(is_rtp == IS_RTP) { if(flow->rtp_stage == 2) { - if(flow->l4.udp.line_pkts[0] >= 2 && flow->l4.udp.line_pkts[1] >= 2) { + if(flow->l4_proto == IPPROTO_UDP && + flow->l4.udp.line_pkts[0] >= 2 && flow->l4.udp.line_pkts[1] >= 2) { /* It seems that it is a LINE stuff; let its dissector to evaluate */ - } else if(flow->l4.udp.epicgames_stage > 0) { + } else if(flow->l4_proto == IPPROTO_UDP && + flow->l4.udp.epicgames_stage > 0) { /* It seems that it is a EpicGames stuff; let its dissector to evaluate */ } else if(flow->rtp_seq_set[packet->packet_direction] && flow->rtp_seq[packet->packet_direction] == seq) { |