mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 14:19:59 -04:00
Fix hashmap part of load-names benchmark
The name_match() was errorneously converting struct item into dns_name pointer. Correctly retype void *node to struct item * first and then use item.fixed.name to pass the name to dns_name_equal() function.
This commit is contained in:
parent
81f48e11e4
commit
9a45fd6f33
1 changed files with 2 additions and 1 deletions
|
|
@ -190,7 +190,8 @@ new_hashmap(isc_mem_t *mem) {
|
|||
|
||||
static bool
|
||||
name_match(void *node, const void *key) {
|
||||
return (dns_name_equal(node, key));
|
||||
const struct item_s *i = node;
|
||||
return (dns_name_equal(&i->fixed.name, key));
|
||||
}
|
||||
|
||||
static isc_result_t
|
||||
|
|
|
|||
Loading…
Reference in a new issue