From d2bb93cdb787515542897ff3669fc71bb6efca18 Mon Sep 17 00:00:00 2001 From: alessio Date: Thu, 19 Sep 2024 11:12:26 +0200 Subject: [PATCH] Remove check for same peer address --- lib/dns/dispatch.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/dns/dispatch.c b/lib/dns/dispatch.c index 961b396868..f5a9796041 100644 --- a/lib/dns/dispatch.c +++ b/lib/dns/dispatch.c @@ -346,8 +346,6 @@ qid_hash(const dns_dispentry_t *dispentry) { isc_hash32_t hash; isc_hash32_init(&hash); - - isc_sockaddr_hash_ex(&hash, &dispentry->peer, true); isc_hash32_hash(&hash, &dispentry->id, sizeof(dispentry->id), true); return (isc_hash32_finalize(&hash)); @@ -359,8 +357,7 @@ 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 && - isc_sockaddr_equal(&dispentry->peer, &key->peer)); + return dispentry->id == key->id; } static void