Browse Source

don't touch *hn in failure case. no real change due to the way we use it

but more correct.
from  Michael Knudsen <e@molioner.dk>
OPENBSD_3_8
henning 19 years ago
parent
commit
708d2e7376
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      src/usr.sbin/ntpd/config.c

+ 4
- 2
src/usr.sbin/ntpd/config.c View File

@ -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 <henning@openbsd.org> * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@ -53,9 +53,11 @@ host(const char *s, struct ntp_addr **hn)
if (h == NULL) if (h == NULL)
h = host_v6(s); h = host_v6(s);
*hn = h;
if (h == NULL) if (h == NULL)
return (0); return (0);
*hn = h;
return (1); return (1);
} }


Loading…
Cancel
Save