Fixed loading of non-ICANN domains that caused false positives with ndpi_load_domain_suffixes

Minor hash optimization
This commit is contained in:
Luca Deri
2024-01-27 20:40:27 +01:00
parent bcca89b78c
commit 65b9c68d7d
4 changed files with 37 additions and 21 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ u_int64_t ndpi_quick_hash64(const char *str, u_int str_len) {
for(i=0; i<str_len; i++)
h = (h * 177) + str[i];
h ^= strlen(str);
h ^= str_len;
return h;
}