Fixed loading of non-ICANN domains that caused false positives with ndpi_load_domain_suffixes
Minor hash optimization
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user