summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-08-24 15:23:20 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-08-24 15:23:20 +0000
commit6b6c4aac417cddc2186fff37bc4db5e04d782931 (patch)
tree5fe852fd71eb14a65bdf69ab810aa3c379d48358 /usr.sbin
parent5257113d57679a8c17688a78940823bb03f2c460 (diff)
don't fatal() if getaddrinfo() returns EAI_NONAME
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ntpd/config.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ntpd/config.c b/usr.sbin/ntpd/config.c
index 2b01da1766c..e48c8515709 100644
--- a/usr.sbin/ntpd/config.c
+++ b/usr.sbin/ntpd/config.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: config.c,v 1.11 2004/08/12 16:33:59 henning Exp $ */
+/* $OpenBSD: config.c,v 1.12 2004/08/24 15:23:19 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -129,7 +129,8 @@ host_dns(const char *s, struct ntp_addr **hn)
if (error) {
log_warnx("could not parse \"%s\": %s", s,
gai_strerror(error));
- if (error == EAI_AGAIN || error == EAI_NODATA)
+ if (error == EAI_AGAIN || error == EAI_NODATA ||
+ error == EAI_NONAME)
return (0);
else
return (-1);