Skip to content

Commit

Permalink
Added check
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaderi committed Feb 21, 2025
1 parent cbfc20d commit f261153
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/protocols/rtp.c
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,8 @@ static void ndpi_rtp_search(struct ndpi_detection_module_struct *ndpi_struct,
u_int16_t payload_len = packet->payload_packet_len;
u_int16_t seq;

if(payload_len == 0) return;

if(packet->tcp != NULL) {
payload += 2; /* Skip the length field */
payload_len -= 2;
Expand Down

0 comments on commit f261153

Please sign in to comment.