diff options
author | Luca Deri <deri@ntop.org> | 2019-10-08 11:36:11 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2019-10-08 11:36:11 +0200 |
commit | 256858d2e5d9db3777ccb113ed75bcd836fc8d16 (patch) | |
tree | dd21dffc7510f2fe4989676732511bbb911230f2 /example/ndpiReader.c | |
parent | 10873bfe3564b52561f692400ad51fc9923e0b14 (diff) | |
parent | e939f1c1d1bfa744d430e64305010bf918c5dfbe (diff) |
Merge branch 'dev' of https://github.com/ntop/nDPI into dev
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r-- | example/ndpiReader.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 46656cb96..3566e93d8 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -1909,9 +1909,8 @@ static void setupDetection(u_int16_t thread_id, pcap_t * pcap_handle) { ndpi_load_ip_category(ndpi_thread_info[thread_id].workflow->ndpi_struct, name, (ndpi_protocol_category_t)atoi(category)); else { - /* TODO free the strdup */ ndpi_load_hostname_category(ndpi_thread_info[thread_id].workflow->ndpi_struct, - strdup(name), (ndpi_protocol_category_t)atoi(category)); + name, (ndpi_protocol_category_t)atoi(category)); } } } |