generations don't try to change any of the values and break the code.
ok deraadt
-/* $OpenBSD: config.c,v 1.21 2015/01/10 01:56:52 bcook Exp $ */
+/* $OpenBSD: config.c,v 1.22 2015/01/10 13:47:05 tedu Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
static u_int32_t maxid = 0;
-int
+void
host(const char *s, struct ntp_addr **hn)
{
struct ntp_addr *h = NULL;
h = host_v6(s);
if (h == NULL)
- return (0);
+ return;
*hn = h;
-
- return (1);
}
struct ntp_addr *
-/* $OpenBSD: ntpd.h,v 1.115 2015/01/09 07:35:37 deraadt Exp $ */
+/* $OpenBSD: ntpd.h,v 1.116 2015/01/10 13:47:05 tedu Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
int parse_config(const char *, struct ntpd_conf *);
/* config.c */
-int host(const char *, struct ntp_addr **);
+void host(const char *, struct ntp_addr **);
int host_dns(const char *, struct ntp_addr **);
struct ntp_peer *new_peer(void);
struct ntp_conf_sensor *new_sensor(char *);
-/* $OpenBSD: parse.y,v 1.56 2015/01/08 00:30:08 bcook Exp $ */
+/* $OpenBSD: parse.y,v 1.57 2015/01/10 13:47:05 tedu Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
if (($$ = calloc(1, sizeof(struct ntp_addr_wrap))) ==
NULL)
fatal(NULL);
- if (host($1, &$$->a) == -1) {
- yyerror("could not parse address spec \"%s\"",
- $1);
- free($1);
- free($$);
- YYERROR;
- }
+ host($1, &$$->a);
$$->name = $1;
}
;