From 5e24b32467be38ded476ac276571e5785a98cde4 Mon Sep 17 00:00:00 2001 From: emanuele-f Date: Fri, 12 Apr 2019 17:08:32 +0200 Subject: Fix category detection --- src/lib/ndpi_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/ndpi_main.c') 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; } -- cgit v1.2.3