Fix category detection

This commit is contained in:
emanuele-f
2019-04-12 17:08:32 +02:00
parent 2f14b8abbf
commit 5e24b32467
+1 -1
View File
@@ -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;
}