aboutsummaryrefslogtreecommitdiff
path: root/example/ndpiReader.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2025-06-17 23:57:15 +0200
committerLuca Deri <deri@ntop.org>2025-06-17 23:57:15 +0200
commit3a243bb40d54529002f834e3ef770c0408b7b0d4 (patch)
treed3e1c97fa64780d47be90950f87da978a1fd7180 /example/ndpiReader.c
parent9a71f141b4a4ea863f9347792f449bf50d368d2b (diff)
Merged protocols (now free to use) into existing categories
- AdultContent -> Category Adult Content - LLM -> Category Artificial Intelligence
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r--example/ndpiReader.c3
1 files changed, 3 insertions, 0 deletions
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,