aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremanuele-f <black.silver@hotmail.it>2019-04-12 17:08:32 +0200
committeremanuele-f <black.silver@hotmail.it>2019-04-12 17:08:32 +0200
commit5e24b32467be38ded476ac276571e5785a98cde4 (patch)
tree177a6a85603e996ef352fc1897fb3412db89c5c3
parent2f14b8abbf0fe236b083deca69de82b58b757d24 (diff)
Fix category detection
-rw-r--r--src/lib/ndpi_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c
index dd108027f..b3c69f825 100644
--- a/src/lib/ndpi_main.c
+++ b/src/lib/ndpi_main.c
@@ -4589,7 +4589,7 @@ void ndpi_fill_protocol_category(struct ndpi_detection_module_struct *ndpi_struc
ndpi_protocol *ret) {
if(ndpi_struct->custom_categories.categories_loaded) {
if(flow->guessed_header_category != NDPI_PROTOCOL_CATEGORY_UNSPECIFIED) {
- flow->category = flow->guessed_header_category;
+ flow->category = ret->category = flow->guessed_header_category;
return;
}