From 7525fa78c07af2c79b7859710ac5fc60bc80b85d Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Wed, 26 Apr 2000 19:25:01 +0000 Subject: [PATCH] add XXXRTH comment about sending to ourselves --- lib/dns/resolver.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/dns/resolver.c b/lib/dns/resolver.c index a40e609566..d3c7102d25 100644 --- a/lib/dns/resolver.c +++ b/lib/dns/resolver.c @@ -941,6 +941,10 @@ resquery_send(resquery_t *query) { if ((query->options & DNS_FETCHOPT_TCP) == 0) address = query->addrinfo->sockaddr; isc_buffer_used(buffer, &r); + /* + * XXXRTH Make sure we don't send to ourselves! We should probably + * prune out these addresses when we get them from the ADB. + */ result = isc_socket_sendto(socket, &r, task, resquery_senddone, query, address, NULL); if (result != ISC_R_SUCCESS)