summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/dns-domain.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/shared/dns-domain.c b/src/shared/dns-domain.c
index 3848a0518d..729508e6a5 100644
--- a/src/shared/dns-domain.c
+++ b/src/shared/dns-domain.c
@@ -503,10 +503,8 @@ void dns_name_hash_func(const void *s, struct siphash *state) {
if (r == 0)
break;
- label[r] = 0;
- ascii_strlower(label);
-
- string_hash_func(label, state);
+ ascii_strlower_n(label, r);
+ siphash24_compress(label, r, state);
}
/* enforce that all names are terminated by the empty label */