Improved ndpi_get_host_domain

This commit is contained in:
Luca
2024-01-16 07:25:03 +01:00
parent 1637a991a4
commit ca7df1db82
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -264,12 +264,12 @@ const char* ndpi_domain_classify_longest_prefix(ndpi_domain_classify *s,
break;
}
prev_elem = elem;
elem = strchr(elem, '.');
if(elem == NULL) break;
// if(elem == dot) break;
prev_elem = elem;
elem = &elem[1];
} /* while */