From a32a1a544c75117952994e3edc1a77e19881d39a Mon Sep 17 00:00:00 2001 From: reyk <> Date: Sun, 8 Feb 2015 04:54:15 +0000 Subject: [PATCH] Add a comment that ntpd MUST NOT use AI_ADDRCONFIG in host_dns() OK henning@ --- src/usr.sbin/ntpd/config.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/usr.sbin/ntpd/config.c b/src/usr.sbin/ntpd/config.c index b3e9d46d..e2443e65 100644 --- a/src/usr.sbin/ntpd/config.c +++ b/src/usr.sbin/ntpd/config.c @@ -1,4 +1,4 @@ -/* $OpenBSD: config.c,v 1.24 2015/01/19 11:44:08 bcook Exp $ */ +/* $OpenBSD: config.c,v 1.25 2015/02/08 04:54:15 reyk Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -130,6 +130,7 @@ host_dns(const char *s, struct ntp_addr **hn) bzero(&hints, sizeof(hints)); hints.ai_family = PF_UNSPEC; hints.ai_socktype = SOCK_DGRAM; /* DUMMY */ + /* ntpd MUST NOT use AI_ADDRCONFIG here */ error = getaddrinfo(s, NULL, &hints, &res0); if (error == EAI_AGAIN || error == EAI_NODATA || error == EAI_NONAME) return (0);