Added checks for DGA detection

This commit is contained in:
Luca Deri
2020-06-17 19:46:37 +02:00
parent ffd20ebdf9
commit 46d96e7f32
9 changed files with 34 additions and 27 deletions
+1 -1
View File
@@ -450,7 +450,7 @@ static void check_content_type_and_change_protocol(struct ndpi_detection_module_
flow->host_server_name[len] = '\0';
flow->extra_packets_func = NULL; /* We're good now */
ndpi_check_dga_name(ndpi_struct, flow, (char*)flow->host_server_name);
if(len > 0) ndpi_check_dga_name(ndpi_struct, flow, (char*)flow->host_server_name);
flow->server_id = flow->dst;
if(packet->forwarded_line.ptr) {