From b2f67058c699152cf5303363aef14603fdc968e5 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Ritschard Date: Thu, 31 May 2007 18:20:04 +0000 Subject: make sure object ids are reset before parsing the configuration file again. --- usr.sbin/relayd/parse.y | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'usr.sbin/relayd/parse.y') 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 @@ -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); -- cgit v1.2.3