From f04f23feb68a925daf4b9822d1c64c712c67dfb5 Mon Sep 17 00:00:00 2001 From: henning <> Date: Tue, 24 Aug 2004 15:23:19 +0000 Subject: [PATCH] don't fatal() if getaddrinfo() returns EAI_NONAME --- src/usr.sbin/ntpd/config.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/usr.sbin/ntpd/config.c b/src/usr.sbin/ntpd/config.c index 2b01da17..e48c8515 100644 --- a/src/usr.sbin/ntpd/config.c +++ b/src/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 @@ -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);