diff options
author | Stef Walter <stef@memberwebs.com> | 2008-06-21 02:49:01 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2008-06-21 02:49:01 +0000 |
commit | bcf0b2d14d4cc8e3acd9c0610c3988eb770030aa (patch) | |
tree | 85bd3a9e72228747bcf411466d438de18c2b5ac4 /tools/notify-dns-slaves.c | |
parent | a998aa9a2e3a1f1f4994b47ea78fdf8883c5917a (diff) |
Make sure we limit found addresses to udp
Diffstat (limited to 'tools/notify-dns-slaves.c')
-rw-r--r-- | tools/notify-dns-slaves.c | 1 |
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; |