diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2023-04-14 11:17:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-14 11:17:37 +0200 |
commit | ba993300311158c79c4880a621e43684d4b4a03d (patch) | |
tree | 322f5f5338115eabeeac4feaca004b703fd40410 /example/reader_util.c | |
parent | 032e778a6dc1ee2173c4cdb2c671180c5b5df245 (diff) |
ndpiReader: fix flow stats (#1943)
Diffstat (limited to 'example/reader_util.c')
-rw-r--r-- | example/reader_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |