diff options
author | 2015-02-08 04:54:15 +0000 | |
---|---|---|
committer | 2015-02-08 04:54:15 +0000 | |
commit | 110a1c68afde29004f7876250a37fca9c569c75c (patch) | |
tree | 1d699cc230a4cb97a58d754f8930389d6d21a886 | |
parent | Use AI_ADDRCONFIG when resolv hosts on startup. (diff) | |
download | wireguard-openbsd-110a1c68afde29004f7876250a37fca9c569c75c.tar.xz wireguard-openbsd-110a1c68afde29004f7876250a37fca9c569c75c.zip |
Add a comment that ntpd MUST NOT use AI_ADDRCONFIG in host_dns()
OK henning@
-rw-r--r-- | usr.sbin/ntpd/config.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ntpd/config.c b/usr.sbin/ntpd/config.c index b3e9d46da70..e2443e65445 100644 --- a/usr.sbin/ntpd/config.c +++ b/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 <henning@openbsd.org> @@ -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); |