From ba993300311158c79c4880a621e43684d4b4a03d Mon Sep 17 00:00:00 2001 From: Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> Date: Fri, 14 Apr 2023 11:17:37 +0200 Subject: ndpiReader: fix flow stats (#1943) --- example/reader_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'example/reader_util.c') diff --git a/example/reader_util.c b/example/reader_util.c index 3395153b0..18059f794 100644 --- a/example/reader_util.c +++ b/example/reader_util.c @@ -983,7 +983,7 @@ static struct ndpi_flow_info *get_ndpi_flow_info(struct ndpi_workflow * workflow *src_to_dst_direction = 1; } if(enable_flow_stats) { - if(src_to_dst_direction) { + if(*src_to_dst_direction) { if(rflow->entropy->src2dst_pkt_count < max_num_packets_per_flow) { rflow->entropy->src2dst_pkt_len[rflow->entropy->src2dst_pkt_count] = l4_data_len; rflow->entropy->src2dst_pkt_time[rflow->entropy->src2dst_pkt_count] = when; -- cgit v1.2.3