aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2019-06-20 22:16:53 +0200
committerLuca Deri <deri@ntop.org>2019-06-20 22:16:53 +0200
commit13e8354f37d89936ca331000a4bfd119d82db122 (patch)
tree0949a68ea6f5024de23d13afe47f2feb4602d6ca /example
parent0fe7f16ecfbe273f75f04cdebb95eb7de4f7cef6 (diff)
JSON-C fix
Diffstat (limited to 'example')
-rw-r--r--example/ndpiReader.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c
index 25886af31..abfe5d365 100644
--- a/example/ndpiReader.c
+++ b/example/ndpiReader.c
@@ -18,9 +18,7 @@
*
*/
-#ifdef HAVE_CONFIG_H
#include "ndpi_config.h"
-#endif
#ifdef linux
#define _GNU_SOURCE
@@ -899,8 +897,8 @@ static void printFlow(u_int16_t id, struct ndpi_flow_info *flow, u_int16_t threa
if(flow->ssh_ssl.ja3_client[0] != '\0')
json_object_object_add(jObj,"ja3c",json_object_new_string(flow->ssh_ssl.ja3_client));
- if(flow->ja3_server[0] != '\0')
- json_object_object_add(jObj,"host.server.ja3",json_object_new_string(flow->ja3_server));
+ if(flow->ssh_ssl.ja3_server[0] != '\0')
+ json_object_object_add(jObj,"host.server.ja3",json_object_new_string(flow->ssh_ssl.ja3_server));
if(flow->ssh_ssl.client_info[0] != '\0')
json_object_object_add(sjObj, "client", json_object_new_string(flow->ssh_ssl.client_info));