diff options
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r-- | example/ndpiReader.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c index f850036cf..40ef7cf6b 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -994,8 +994,8 @@ static void setupDetection(u_int16_t thread_id) { ndpi_set_protocol_detection_bitmask2(ndpi_thread_info[thread_id].ndpi_struct, &all); // allocate memory for id and flow tracking - size_id_struct = ndpi_detection_get_sizeof_ndpi_id_struct(); - size_flow_struct = ndpi_detection_get_sizeof_ndpi_flow_struct(); + size_id_struct = sizeof(struct ndpi_id_struct); + size_flow_struct = sizeof(struct ndpi_flow_struct); // clear memory for results memset(ndpi_thread_info[thread_id].stats.protocol_counter, 0, sizeof(ndpi_thread_info[thread_id].stats.protocol_counter)); |