diff options
author | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2007-05-31 18:20:04 +0000 |
---|---|---|
committer | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2007-05-31 18:20:04 +0000 |
commit | b2f67058c699152cf5303363aef14603fdc968e5 (patch) | |
tree | 80382dadb93a4ab1834c339ffa085760ad67e141 /usr.sbin/hoststated | |
parent | 482082f161006b174aa26ba3c9bcf47e8419d274 (diff) |
make sure object ids are reset before parsing the configuration file
again.
Diffstat (limited to 'usr.sbin/hoststated')
-rw-r--r-- | usr.sbin/hoststated/parse.y | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/hoststated/parse.y b/usr.sbin/hoststated/parse.y index fbd38880e21..d8e83e9a49e 100644 --- a/usr.sbin/hoststated/parse.y +++ b/usr.sbin/hoststated/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.47 2007/05/31 03:24:05 pyr Exp $ */ +/* $OpenBSD: parse.y,v 1.48 2007/05/31 18:20:03 pyr Exp $ */ /* * Copyright (c) 2006 Pierre-Yves Ritschard <pyr@spootnik.org> @@ -1416,6 +1416,9 @@ parse_config(const char *filename, int opts) (conf->services = calloc(1, sizeof(*conf->services))) == NULL) return (NULL); + last_host_id = last_table_id = last_service_id = last_proto_id = + last_relay_id = 0; + TAILQ_INIT(conf->services); TAILQ_INIT(conf->tables); TAILQ_INIT(&conf->protos); |