aboutsummaryrefslogtreecommitdiff
path: root/src/lib/ndpi_main.c
diff options
context:
space:
mode:
authorPhilippe Antoine <contact@catenacyber.fr>2020-04-15 16:22:16 +0200
committerPhilippe Antoine <contact@catenacyber.fr>2020-04-15 16:22:16 +0200
commitc1f9f05d338bd8236930df60e08b7cf635790ebf (patch)
treeae4af1acef78ed51e73d834c6dc92db3fd70f1cd /src/lib/ndpi_main.c
parentcf47ba234a59db325a382db4bbdf10187f93eb9a (diff)
Adds tls check before reading memory
Diffstat (limited to 'src/lib/ndpi_main.c')
-rw-r--r--src/lib/ndpi_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c
index b0fbcf9b7..1a68acdd5 100644
--- a/src/lib/ndpi_main.c
+++ b/src/lib/ndpi_main.c
@@ -4687,7 +4687,7 @@ void ndpi_fill_protocol_category(struct ndpi_detection_module_struct *ndpi_str,
}
}
- if(flow->protos.stun_ssl.ssl.client_requested_server_name[0] != '\0') {
+ if(flow->l4.tcp.tls.hello_processed == 1 && flow->protos.stun_ssl.ssl.client_requested_server_name[0] != '\0') {
unsigned long id;
int rc = ndpi_match_custom_category(ndpi_str,
(char *)flow->protos.stun_ssl.ssl.client_requested_server_name,