From bcf0b2d14d4cc8e3acd9c0610c3988eb770030aa Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Sat, 21 Jun 2008 02:49:01 +0000 Subject: Make sure we limit found addresses to udp --- tools/notify-dns-slaves.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tools/notify-dns-slaves.c') diff --git a/tools/notify-dns-slaves.c b/tools/notify-dns-slaves.c index 83ce910..a21ca1b 100644 --- a/tools/notify-dns-slaves.c +++ b/tools/notify-dns-slaves.c @@ -613,6 +613,7 @@ process_notify (const char *zone, const char *server, uint64_t delay) if (rc == SANY_AF_DNS) { memset (&hints, 0, sizeof (hints)); hints.ai_family = PF_UNSPEC; + hints.ai_protocol = IPPROTO_UDP; hints.ai_socktype = SOCK_DGRAM; hints.ai_flags = AI_ADDRCONFIG | AI_NUMERICSERV; SANY_TYPE (notif->address) = 0; -- cgit v1.2.3