summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2008-06-21 02:49:01 +0000
committerStef Walter <stef@memberwebs.com>2008-06-21 02:49:01 +0000
commitbcf0b2d14d4cc8e3acd9c0610c3988eb770030aa (patch)
tree85bd3a9e72228747bcf411466d438de18c2b5ac4
parenta998aa9a2e3a1f1f4994b47ea78fdf8883c5917a (diff)
Make sure we limit found addresses to udp
-rw-r--r--tools/notify-dns-slaves.c1
1 files changed, 1 insertions, 0 deletions
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;