From 406616ca9966b54ebb46b5d8aa11599aac58f209 Mon Sep 17 00:00:00 2001 From: bcook Date: Fri, 9 Jan 2015 23:48:21 +0000 Subject: [PATCH] return -1 on host() address parsing failure, not 1. Match what parse.y expects it to return. ok millert@ --- usr.sbin/ntpd/config.c | 4 ++-- 1 file 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 @@ -58,7 +58,7 @@ host(const char *s, struct ntp_addr **hn) *hn = h; - return (1); + return (-1); } struct ntp_addr * -- 2.20.1