summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorBrent Cook <bcook@cvs.openbsd.org>2015-01-09 23:48:22 +0000
committerBrent Cook <bcook@cvs.openbsd.org>2015-01-09 23:48:22 +0000
commit6701df27fe85c51d8f9277391dc663255241164b (patch)
treeb3b2fd5b6c9b54494c8e53e371a34efc4b429900 /usr.sbin
parent6c0adaf4f7ca803f955590d56e739dba13e08b80 (diff)
return -1 on host() address parsing failure, not 1.
Match what parse.y expects it to return. ok millert@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ntpd/config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ntpd/config.c b/usr.sbin/ntpd/config.c
index b95df25b8c7..cd13a38435a 100644
--- a/usr.sbin/ntpd/config.c
+++ b/usr.sbin/ntpd/config.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: config.c,v 1.19 2006/05/27 17:01:07 henning Exp $ */
+/* $OpenBSD: config.c,v 1.20 2015/01/09 23:48:21 bcook Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -58,7 +58,7 @@ host(const char *s, struct ntp_addr **hn)
*hn = h;
- return (1);
+ return (-1);
}
struct ntp_addr *