diff options
author | Luca Deri <deri@ntop.org> | 2020-02-19 12:24:26 +0100 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2020-02-19 12:24:26 +0100 |
commit | edce5a8c1fbdf7fd7362e4ca3b44da52356487fc (patch) | |
tree | 5b6f16a24ae50373e2b9dc985faab3d6aae88a75 /src | |
parent | c8ccf33f07e8161fa87f61c44134a9560caf37b8 (diff) |
Fix for disabling guess when not requested
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/ndpi_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 8d80e25d8..d1507f68f 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -4237,7 +4237,7 @@ ndpi_protocol ndpi_detection_giveup(struct ndpi_detection_module_struct *ndpi_st else if((flow->l4.tcp.tls.hello_processed == 1) && (flow->protos.stun_ssl.ssl.client_requested_server_name[0] != '\0')) { ndpi_set_detected_protocol(ndpi_str, flow, NDPI_PROTOCOL_TLS, NDPI_PROTOCOL_UNKNOWN); - } else { + } else if(enable_guess) { if((flow->guessed_protocol_id == NDPI_PROTOCOL_UNKNOWN) && (flow->packet.l4_protocol == IPPROTO_TCP) && flow->l4.tcp.tls.hello_processed) @@ -4287,7 +4287,7 @@ ndpi_protocol ndpi_detection_giveup(struct ndpi_detection_module_struct *ndpi_st guessed_protocol_id); } } - } else { + } else if(enable_guess) { if(flow->guessed_protocol_id != NDPI_PROTOCOL_UNKNOWN) flow->detected_protocol_stack[1] = flow->guessed_protocol_id; |