diff options
author | Toni <matzeton@googlemail.com> | 2022-11-07 20:38:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-07 20:38:40 +0100 |
commit | 6d3446b114c4d3c310968ce714e5d579e8baf922 (patch) | |
tree | e36dc7e13476af5227aafe055eaa988f7125bd58 | |
parent | 52b562c3280e8592c6a5452659a1cb4cffe26177 (diff) | |
parent | aa5dd25392b07d3c1733a3997f5df6494cb01e0f (diff) |
Merge pull request #1796 from IvanNardi/issue-1792
RTP: remove a superfluous check
-rw-r--r-- | src/lib/protocols/rtp.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/protocols/rtp.c b/src/lib/protocols/rtp.c index a5fcec4e9..d0ca60a98 100644 --- a/src/lib/protocols/rtp.c +++ b/src/lib/protocols/rtp.c @@ -128,7 +128,7 @@ static void ndpi_rtp_search(struct ndpi_detection_module_struct *ndpi_struct, /* *************************************************************** */ -void ndpi_search_rtp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow) +static void ndpi_search_rtp(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow) { struct ndpi_packet_struct *packet = &ndpi_struct->packet; u_int16_t source = ntohs(packet->udp->source); @@ -138,8 +138,7 @@ void ndpi_search_rtp(struct ndpi_detection_module_struct *ndpi_struct, struct nd /* printf("*** %s(pkt=%d)\n", __FUNCTION__, flow->packet_counter); */ - if((packet->udp != NULL) - && (source != 30303) && (dest != 30303 /* Avoid to mix it with Ethereum that looks alike */) + if((source != 30303) && (dest != 30303 /* Avoid to mix it with Ethereum that looks alike */) && (dest > 1023) ) ndpi_rtp_search(ndpi_struct, flow, packet->payload, packet->payload_packet_len); |