From 3a243bb40d54529002f834e3ef770c0408b7b0d4 Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Tue, 17 Jun 2025 23:57:15 +0200 Subject: Merged protocols (now free to use) into existing categories - AdultContent -> Category Adult Content - LLM -> Category Artificial Intelligence --- example/ndpiReader.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'example/ndpiReader.c') diff --git a/example/ndpiReader.c b/example/ndpiReader.c index ddabfe560..56eb9c7d7 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -3056,6 +3056,9 @@ static void setupDetection(u_int16_t thread_id, pcap_t * pcap_handle, } } + if(ndpi_thread_info[thread_id].workflow == NULL) + exit(-1); /* Some initialiation functions failed */ + ndpi_thread_info[thread_id].workflow->g_ctx = g_ctx; ndpi_workflow_set_flow_callback(ndpi_thread_info[thread_id].workflow, -- cgit v1.2.3