mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 06:55:30 +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
|
static bool
|
||||||
name_match(void *node, const void *key) {
|
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
|
static isc_result_t
|
||||||
|
Reference in New Issue
Block a user