summaryrefslogtreecommitdiff
path: root/usr.sbin/hoststated
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2007-09-07 07:54:59 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2007-09-07 07:54:59 +0000
commite4c9d84121c9df938c4633c0db01cd85c044c172 (patch)
treebc667d38c3c6d5825fcf3e3c2695d34cb92ae240 /usr.sbin/hoststated
parentaf92d59f0c404fa53091253c6666c5d613979e47 (diff)
store the table's port as the relay's dstport
Diffstat (limited to 'usr.sbin/hoststated')
-rw-r--r--usr.sbin/hoststated/parse.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/hoststated/parse.y b/usr.sbin/hoststated/parse.y
index 1c7d83d8d0b..c0a0b1e47c5 100644
--- a/usr.sbin/hoststated/parse.y
+++ b/usr.sbin/hoststated/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.52 2007/09/05 08:48:42 reyk Exp $ */
+/* $OpenBSD: parse.y,v 1.53 2007/09/07 07:54:58 reyk Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@spootnik.org>
@@ -1003,6 +1003,7 @@ relayoptsl : LISTEN ON STRING port optssl {
free($2);
rlay->conf.dsttable = tb->conf.id;
rlay->dsttable = tb;
+ rlay->conf.dstport = tb->conf.port;
rlay->conf.dstmode = $4;
rlay->conf.dstcheck = $5;
rlay->dsttable->conf.flags |= F_USED;