From: Tony Finch Date: Wed, 6 Apr 2022 17:52:18 +0000 (+0100) Subject: Use a case-sensitive hash table for ADB address entries X-Git-Tag: v9.19.1~12^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c44d7c8034384a284a8df1f57fd2b7d60f505a61;p=thirdparty%2Fbind9.git 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. --- diff --git a/lib/dns/adb.c b/lib/dns/adb.c index 40a262917b2..a5949999e20 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);