summaryrefslogtreecommitdiff
path: root/usr.sbin/relayd/parse.y
diff options
context:
space:
mode:
authorPierre-Yves Ritschard <pyr@cvs.openbsd.org>2007-05-31 18:20:04 +0000
committerPierre-Yves Ritschard <pyr@cvs.openbsd.org>2007-05-31 18:20:04 +0000
commitb2f67058c699152cf5303363aef14603fdc968e5 (patch)
tree80382dadb93a4ab1834c339ffa085760ad67e141 /usr.sbin/relayd/parse.y
parent482082f161006b174aa26ba3c9bcf47e8419d274 (diff)
make sure object ids are reset before parsing the configuration file
again.
Diffstat (limited to 'usr.sbin/relayd/parse.y')
-rw-r--r--usr.sbin/relayd/parse.y5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/relayd/parse.y b/usr.sbin/relayd/parse.y
index fbd38880e21..d8e83e9a49e 100644
--- a/usr.sbin/relayd/parse.y
+++ b/usr.sbin/relayd/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);