diff options
author | Luca Deri <deri@ntop.org> | 2021-08-17 19:04:07 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2021-08-17 19:04:07 +0200 |
commit | 821f4c924945496f4ef6f943669b5be621d56381 (patch) | |
tree | 4b7e6ebdd7daa32e0a54864b8de848f527fc4583 /src/lib/ndpi_main.c | |
parent | a2ea67152c63f28b75b639196681dc0ad7b1030e (diff) |
Fixed some invalid TLS guesses
Diffstat (limited to 'src/lib/ndpi_main.c')
-rw-r--r-- | src/lib/ndpi_main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 493c71aea..c4535c768 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -5416,6 +5416,9 @@ ndpi_protocol ndpi_detection_process_packet(struct ndpi_detection_module_struct flow->num_processed_pkts++; + if(flow->num_processed_pkts > NDPI_MAX_NUM_PKTS_PER_FLOW_TO_DISSECT) + return(ret); /* Avoid spending too much time with this flow */ + /* Init default */ ret.master_protocol = flow->detected_protocol_stack[1], ret.app_protocol = flow->detected_protocol_stack[0]; |