Skip to content

Commit

Permalink
Added missing check
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaderi committed Dec 9, 2024
1 parent a156d69 commit a110032
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/protocols/stun.c
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,7 @@ static int keep_extra_dissection(struct ndpi_detection_module_struct *ndpi_struc

if(packet->udp
&& (ntohs(packet->udp->source) == 3478)
&& (packet->payload_packet_len > 0)
&& (packet->payload[0] != 0x0) && (packet->payload[0] != 0x1)) {
if(flow->stun.num_non_stun_pkt < 2) {
flow->stun.non_stun_pkt_len[flow->stun.num_non_stun_pkt++] = packet->payload_packet_len;
Expand Down

0 comments on commit a110032

Please sign in to comment.