diff options
author | emanuele-f <black.silver@hotmail.it> | 2018-10-10 13:33:02 +0200 |
---|---|---|
committer | emanuele-f <black.silver@hotmail.it> | 2018-10-10 13:33:02 +0200 |
commit | 67a1a07ac1eee40e48f262d17447711cbdf6f148 (patch) | |
tree | f89cd58ea309c492f20b25d0dfe6e23d608cd1b2 | |
parent | cdf197ccfeedad29ceeca9b38a188dcdef6b7c06 (diff) |
Fix custom categories match by IP not working
-rw-r--r-- | src/lib/ndpi_main.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 9b2f80f86..b2abe0068 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -4204,18 +4204,15 @@ int ndpi_enable_loaded_categories(struct ndpi_detection_module_struct *ndpi_str) #else /* Free */ ac_automata_release((AC_AUTOMATA_t*)ndpi_str->custom_categories.hostnames.ac_automa); - ndpi_Destroy_Patricia((patricia_tree_t*)ndpi_str->custom_categories.ipAddresses, free_ptree_data); /* Finalize */ ac_automata_finalize((AC_AUTOMATA_t*)ndpi_str->custom_categories.hostnames_shadow.ac_automa); /* Swap */ ndpi_str->custom_categories.hostnames.ac_automa = ndpi_str->custom_categories.hostnames_shadow.ac_automa; - ndpi_str->custom_categories.ipAddresses = ndpi_str->custom_categories.ipAddresses_shadow; /* Realloc */ ndpi_str->custom_categories.hostnames_shadow.ac_automa = ac_automata_init(ac_match_handler); - ndpi_str->custom_categories.ipAddresses_shadow = ndpi_New_Patricia(32 /* IPv4 */); #endif } |