From 0ffb416dc97b3a9e9fb8f417075d38b9a49ec1c4 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Ritschard Date: Thu, 31 May 2007 18:58:10 +0000 Subject: do not forget to store table and backup table ids in the service configuration struct. --- usr.sbin/hoststated/parse.y | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'usr.sbin/hoststated/parse.y') diff --git a/usr.sbin/hoststated/parse.y b/usr.sbin/hoststated/parse.y index d8e83e9a49e..637b76175ed 100644 --- a/usr.sbin/hoststated/parse.y +++ b/usr.sbin/hoststated/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.48 2007/05/31 18:20:03 pyr Exp $ */ +/* $OpenBSD: parse.y,v 1.49 2007/05/31 18:58:09 pyr Exp $ */ /* * Copyright (c) 2006 Pierre-Yves Ritschard @@ -334,6 +334,7 @@ serviceoptsl : TABLE STRING dstport { free($2); service->table = tb; + service->conf.table_id = tb->conf.id; service->table->conf.serviceid = service->conf.id; service->table->conf.flags |= F_USED; } @@ -357,6 +358,7 @@ serviceoptsl : TABLE STRING dstport { free($3); service->backup = tb; + service->conf.backup_id = tb->conf.id; service->backup->conf.serviceid = service->conf.id; service->backup->conf.flags |= (F_USED|F_BACKUP); } -- cgit v1.2.3