From 708d2e7376e369e997c65d2c796f0ca2ccff8191 Mon Sep 17 00:00:00 2001 From: henning <> Date: Wed, 11 May 2005 15:12:35 +0000 Subject: [PATCH] don't touch *hn in failure case. no real change due to the way we use it but more correct. from Michael Knudsen --- src/usr.sbin/ntpd/config.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/usr.sbin/ntpd/config.c b/src/usr.sbin/ntpd/config.c index 36f27d42..f36bc627 100644 --- a/src/usr.sbin/ntpd/config.c +++ b/src/usr.sbin/ntpd/config.c @@ -1,4 +1,4 @@ -/* $OpenBSD: config.c,v 1.17 2005/03/09 20:31:11 henning Exp $ */ +/* $OpenBSD: config.c,v 1.18 2005/05/11 15:12:35 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -53,9 +53,11 @@ host(const char *s, struct ntp_addr **hn) if (h == NULL) h = host_v6(s); - *hn = h; if (h == NULL) return (0); + + *hn = h; + return (1); }