From f97be61e8b46663254425f99a944c36392227f0b Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Mon, 20 May 2019 15:32:50 +0200 Subject: Fixed JA3 decoding Made ndpi_process_extra_packet() optional --- example/ndpi_util.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'example') diff --git a/example/ndpi_util.c b/example/ndpi_util.c index 174312cb8..da7a87bdb 100644 --- a/example/ndpi_util.c +++ b/example/ndpi_util.c @@ -645,6 +645,8 @@ static struct ndpi_proto packet_processing(struct ndpi_workflow * workflow, return(nproto); } + /* The lines below are no longer necessary as this hsould be called automatically by ndpi_detection_process_packet */ +#if 0 /* Protocol already detected */ if(flow->detection_completed) { if(flow->check_extra_packets && ndpi_flow != NULL && ndpi_flow->check_extra_packets) { @@ -669,7 +671,8 @@ static struct ndpi_proto packet_processing(struct ndpi_workflow * workflow, return(flow->detected_protocol); } - +#endif + flow->detected_protocol = ndpi_detection_process_packet(workflow->ndpi_struct, ndpi_flow, iph ? (uint8_t *)iph : (uint8_t *)iph6, -- cgit v1.2.3