aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2023-08-14 01:15:46 +0200
committerToni Uhlig <matzeton@googlemail.com>2023-10-05 17:37:42 +0200
commit44adfc0b7d1badd0dd9ed83da3a94477e53203a3 (patch)
tree06b2ab4317b29de4667d9891519b3d703560e788 /examples
parentdfd044930689aa6d2af94d15d1372923c5302ffb (diff)
Sonarcloud integration
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/c-analysed/c-analysed.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/c-analysed/c-analysed.c b/examples/c-analysed/c-analysed.c
index 3f48a01d8..e5f1a4987 100644
--- a/examples/c-analysed/c-analysed.c
+++ b/examples/c-analysed/c-analysed.c
@@ -55,6 +55,12 @@ static void nDPIsrvd_write_flow_info_cb(struct nDPIsrvd_socket const * sock,
(void)instance;
(void)user_data;
+ if (flow == NULL || thread_data == NULL)
+ {
+ fprintf(stderr, "%s\n", "[WriteFlowInfoCallback] BUG: Internal error.");
+ return;
+ }
+
fprintf(stderr,
"[Thread %2d][Flow %5llu][ptr: "
#ifdef __LP64__