diff options
author | Ravi Kerur <ravi.kerur@viasat.com> | 2019-10-19 08:59:48 -0700 |
---|---|---|
committer | Ravi Kerur <ravi.kerur@viasat.com> | 2019-10-19 08:59:48 -0700 |
commit | 7cb3cb735304445f6ea2e64bb30d8317ea66c60b (patch) | |
tree | 6be0cb515137ecf4ff7bfcb96a000029596b3c20 /example/reader_util.c | |
parent | 604abaf81cc9da64b8fd635076475ced3888b293 (diff) |
Fix memory leak in ndpiReader.
Changes in library for strict function prototype.
Signed-off-by: Ravi Kerur <ravi.kerur@viasat.com>
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 6536645c9..4bef4b816 100644 --- a/example/reader_util.c +++ b/example/reader_util.c @@ -185,7 +185,7 @@ void ndpi_payload_analyzer(struct ndpi_flow_info *flow, u_int16_t i, j; u_int16_t scan_len = ndpi_min(max_packet_payload_dissection, payload_len); - if((flow->entropy.src2dst_pkt_count+flow->entropy.dst2src_pkt_count) <= max_num_packets_per_flow) { + if((flow->src2dst_packets+flow->dst2src_packets) <= max_num_packets_per_flow) { #ifdef DEBUG_PAYLOAD printf("[hashval: %u][proto: %u][vlan: %u][%s:%u <-> %s:%u][direction: %s][payload_len: %u]\n", flow->hashval, flow->protocol, flow->vlan_id, |