2
0
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:
Ondřej Surý
2023-10-06 10:28:32 +02:00
parent 81f48e11e4
commit 9a45fd6f33

View File

@@ -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