mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 21:47:59 +00:00
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.
This commit is contained in:
parent
8707cb7ad4
commit
c44d7c8034
@ -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_ht_init(&adb->namebuckets, adb->mctx, 1, ISC_HT_CASE_INSENSITIVE);
|
||||||
isc_rwlock_init(&adb->names_lock, 0, 0);
|
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_rwlock_init(&adb->entries_lock, 0, 0);
|
||||||
|
|
||||||
isc_mutex_init(&adb->lock);
|
isc_mutex_init(&adb->lock);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user