mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00: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:
@@ -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
|
||||
|
Reference in New Issue
Block a user