diff options
author | Nardi Ivan <nardi.ivan@gmail.com> | 2022-07-17 12:49:18 +0200 |
---|---|---|
committer | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2022-07-20 19:16:18 +0200 |
commit | d66aa49787cea811a8fcb585b939ce3ca5c6852e (patch) | |
tree | 73ec0b1c5bd812121930b11f776ba986c23d08b9 /src/lib/protocols/tls.c | |
parent | a9204eb9365432d3ea26b4ca930dfb380b68b4ad (diff) |
DTLS: fix exclusion of DTLS protocol
Add an helper to exclude a generic protocol
Diffstat (limited to 'src/lib/protocols/tls.c')
-rw-r--r-- | src/lib/protocols/tls.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/protocols/tls.c b/src/lib/protocols/tls.c index 11cc3f131..e827e97d1 100644 --- a/src/lib/protocols/tls.c +++ b/src/lib/protocols/tls.c @@ -1187,7 +1187,9 @@ static int ndpi_search_tls_udp(struct ndpi_detection_module_struct *ndpi_struct, packet->payload_packet_len = p_len; /* Restore */ if(no_dtls || change_cipher_found) { - NDPI_EXCLUDE_PROTO(ndpi_struct, flow); + NDPI_EXCLUDE_PROTO_EXT(ndpi_struct, flow, NDPI_PROTOCOL_DTLS); + flow->check_extra_packets = 0; + flow->extra_packets_func = NULL; return(0); /* That's all */ } else { return(1); /* Keep working */ |