diff options
author | Luca Deri <deri@ntop.org> | 2024-12-09 21:08:24 +0100 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2024-12-09 21:08:24 +0100 |
commit | a11003298291884af6005bcd3b4bfd6308a85781 (patch) | |
tree | 5ba98ab57c9c74ed6032c4f450dbdf1ff5aa59b6 /src/lib | |
parent | a156d69ea4ff47160d49b29eae1f32339f197b40 (diff) |
Added missing check
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/protocols/stun.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/protocols/stun.c b/src/lib/protocols/stun.c index 138308082..f7c1ab512 100644 --- a/src/lib/protocols/stun.c +++ b/src/lib/protocols/stun.c @@ -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; |