From 0d2f8f4498f3158be31582c04db0935746a45dd4 Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Mon, 20 May 2019 22:02:21 +0200 Subject: Implements #705 --- example/ndpi_util.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'example/ndpi_util.c') diff --git a/example/ndpi_util.c b/example/ndpi_util.c index da7a87bdb..92d8dca80 100644 --- a/example/ndpi_util.c +++ b/example/ndpi_util.c @@ -572,6 +572,8 @@ void process_ndpi_collected_info(struct ndpi_workflow * workflow, struct ndpi_fl flow->ndpi_flow->protos.stun_ssl.ssl.ja3_client); snprintf(flow->ssh_ssl.ja3_server, sizeof(flow->ssh_ssl.ja3_server), "%s", flow->ndpi_flow->protos.stun_ssl.ssl.ja3_server); + flow->ssh_ssl.client_unsafe_cipher = flow->ndpi_flow->protos.stun_ssl.ssl.client_unsafe_cipher; + flow->ssh_ssl.server_unsafe_cipher = flow->ndpi_flow->protos.stun_ssl.ssl.server_unsafe_cipher; } } @@ -684,7 +686,7 @@ static struct ndpi_proto packet_processing(struct ndpi_workflow * workflow, /* New protocol detected or give up */ flow->detection_completed = 1; /* Check if we should keep checking extra packets */ - if(ndpi_flow->check_extra_packets) + if(ndpi_flow && ndpi_flow->check_extra_packets) flow->check_extra_packets = 1; if(flow->detected_protocol.app_protocol == NDPI_PROTOCOL_UNKNOWN) -- cgit v1.2.3