From 77dd8b61123dbb1e89a829753dbb02046f8a1e8d Mon Sep 17 00:00:00 2001 From: alessio Date: Mon, 16 Sep 2024 14:51:59 +0200 Subject: [PATCH] Add .local field to key --- lib/dns/dispatch.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/dns/dispatch.c b/lib/dns/dispatch.c index 953f7a7020..62c2be421c 100644 --- a/lib/dns/dispatch.c +++ b/lib/dns/dispatch.c @@ -388,8 +388,9 @@ qid_match(struct cds_lfht_node *node, const void *key0) { caa_container_of(node, dns_dispentry_t, ht_node); const dns_dispentry_t *key = key0; - return (dispentry->id == key->id && dispentry->port == key->port && - isc_sockaddr_equal(&dispentry->peer, &key->peer)); + return (dispentry->id == key->id + && dispentry->port == key->port + && isc_sockaddr_equal(&dispentry->peer, &key->peer)); } static void @@ -678,6 +679,7 @@ tcp_recv_success(dns_dispatch_t *disp, isc_region_t *region, */ dns_dispentry_t key = { .id = id, + .local = disp->local, .peer = *peer, .port = isc_sockaddr_getport(&disp->local), };