diff options
author | Luca Deri <deri@ntop.org> | 2019-06-05 23:15:42 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2019-06-05 23:15:42 +0200 |
commit | 709a87c8d442c40aa9f32e450d8e7665732dd9c3 (patch) | |
tree | f1a26f7e266d38ac17fe49ce255766172c6a4f0f /src/lib/ndpi_main.c | |
parent | 4e8055742e8ff826e01587aebb1bea3458268049 (diff) | |
parent | 3979c28cacb6ae113de2a0edfbadb6e3fa001947 (diff) |
Merge branch 'dev' of https://github.com/ntop/nDPI into dev
Diffstat (limited to 'src/lib/ndpi_main.c')
-rw-r--r-- | src/lib/ndpi_main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index e200f32f0..4bc89fb6e 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -425,6 +425,7 @@ static const char* categories[] = { "Banned_Site", "Site_Unavailable", "Allowed_Site", + "Antimalware", }; /* ****************************************** */ @@ -2828,7 +2829,7 @@ int ndpi_handle_rule(struct ndpi_detection_module_struct *ndpi_mod, ndpi_mod->ndpi_num_supported_protocols, 0 /* can_have_a_subprotocol */, no_master, no_master, - ndpi_strdup(proto), + proto, NDPI_PROTOCOL_CATEGORY_UNSPECIFIED, /* TODO add protocol category support in rules */ ndpi_build_default_ports(ports_a, 0, 0, 0, 0, 0) /* TCP */, ndpi_build_default_ports(ports_b, 0, 0, 0, 0, 0) /* UDP */); |