diff options
author | Luca Deri <deri@ntop.org> | 2020-12-21 22:41:42 +0100 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2020-12-21 22:42:05 +0100 |
commit | 6462f4671cfafa00290d5658f860962651ab2a0d (patch) | |
tree | 7910798a6f3353a8f739afbab708d2ad8443c134 /src | |
parent | b231982286757107ae3b5277a7dc268ef5b144db (diff) |
Fixed invalid TLS check for extra processing detection
Diffstat (limited to 'src')
-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; |