]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Use a case-sensitive hash table for ADB address entries
authorTony Finch <fanf@isc.org>
Wed, 6 Apr 2022 17:52:18 +0000 (18:52 +0100)
committerTony Finch <fanf@isc.org>
Tue, 3 May 2022 12:36:48 +0000 (12:36 +0000)
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

index 40a262917b28d6dc8903ffefcb9396714d699621..a5949999e20b6ef0a3ae540d342f20bdb6ceec2d 100644 (file)
@@ -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);