From: bcook Date: Fri, 9 Jan 2015 23:48:21 +0000 (+0000) Subject: return -1 on host() address parsing failure, not 1. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=406616ca9966b54ebb46b5d8aa11599aac58f209;p=openbsd return -1 on host() address parsing failure, not 1. Match what parse.y expects it to return. ok millert@ --- 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 @@ -58,7 +58,7 @@ host(const char *s, struct ntp_addr **hn) *hn = h; - return (1); + return (-1); } struct ntp_addr *