diff options
Diffstat (limited to 'usr.sbin/ntpd/config.c')
-rw-r--r-- | usr.sbin/ntpd/config.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/ntpd/config.c b/usr.sbin/ntpd/config.c index ea52c4fc6b6..f622de2a51f 100644 --- a/usr.sbin/ntpd/config.c +++ b/usr.sbin/ntpd/config.c @@ -1,4 +1,4 @@ -/* $OpenBSD: config.c,v 1.5 2004/07/07 03:53:14 henning Exp $ */ +/* $OpenBSD: config.c,v 1.6 2004/07/07 05:47:57 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -77,6 +77,10 @@ host(const char *s, u_int8_t *len) mask = 128; } + if (!strcmp(s, "*")) + if ((h = calloc(1, sizeof(struct ntp_addr))) == NULL) + fatal(NULL); + /* IPv4 address? */ if (h == NULL) h = host_v4(s, len); |