From d259e49648d8e94824fe3fadea188f2441949775 Mon Sep 17 00:00:00 2001 From: bert hubert Date: Wed, 4 Jan 2017 23:17:55 +0100 Subject: [PATCH] It turns out our use of getaddrinfo in communicator.hh would be returning all addresses in triplicate (one for each socket type). See https://bugzilla.mozilla.org/show_bug.cgi?id=223811 We may have filtered this out at a later stage, but it was wrong in any case. --- pdns/communicator.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/communicator.hh b/pdns/communicator.hh index 065dae952c..8171ec4f64 100644 --- a/pdns/communicator.hh +++ b/pdns/communicator.hh @@ -275,7 +275,7 @@ private: struct addrinfo* res; struct addrinfo hints; memset(&hints, 0, sizeof(hints)); - + hints.ai_socktype = SOCK_DGRAM; // otherwise we get everything in triplicate (!) for(int n = 0; n < 2; ++n) { hints.ai_family = n ? AF_INET : AF_INET6; ComboAddress remote; -- 2.47.2