diff options
-rw-r--r-- | src/lib/ndpi_main.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 302a7fc03..1c41e114b 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -6509,10 +6509,11 @@ u_int8_t ndpi_extra_dissection_possible(struct ndpi_detection_module_struct *ndp switch(proto) { case NDPI_PROTOCOL_TLS: - if((!flow->l4.tcp.tls.certificate_processed) - || (flow->l4.tcp.tls.num_tls_blocks <= ndpi_str->num_tls_blocks_to_follow)) { + if(flow->l4.tcp.tls.certificate_processed) return(0); + + if(flow->l4.tcp.tls.num_tls_blocks <= ndpi_str->num_tls_blocks_to_follow) { // printf("*** %u/%u\n", flow->l4.tcp.tls.num_tls_blocks, ndpi_str->num_tls_blocks_to_follow); - return(1); /* TODO: add check for TLS 1.3 */ + return(1); } break; |