From c44d7c8034384a284a8df1f57fd2b7d60f505a61 Mon Sep 17 00:00:00 2001 From: Tony Finch Date: Wed, 6 Apr 2022 18:52:18 +0100 Subject: [PATCH] Use a case-sensitive hash table for ADB address entries The key for the ADB `entrybuckets` hash table is a binary `struct isc_sockaddr` so it seems wrong to use a case-insensitive hash. --- lib/dns/adb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dns/adb.c b/lib/dns/adb.c index 40a262917b..a5949999e2 100644 --- a/lib/dns/adb.c +++ b/lib/dns/adb.c @@ -2114,7 +2114,7 @@ dns_adb_create(isc_mem_t *mem, dns_view_t *view, isc_taskmgr_t *taskmgr, isc_ht_init(&adb->namebuckets, adb->mctx, 1, ISC_HT_CASE_INSENSITIVE); isc_rwlock_init(&adb->names_lock, 0, 0); - isc_ht_init(&adb->entrybuckets, adb->mctx, 1, ISC_HT_CASE_INSENSITIVE); + isc_ht_init(&adb->entrybuckets, adb->mctx, 1, ISC_HT_CASE_SENSITIVE); isc_rwlock_init(&adb->entries_lock, 0, 0); isc_mutex_init(&adb->lock);