summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorDaniel Hartmeier <dhartmei@cvs.openbsd.org>2005-09-05 14:51:09 +0000
committerDaniel Hartmeier <dhartmei@cvs.openbsd.org>2005-09-05 14:51:09 +0000
commit316ec176f438fcc7264556e930291769a8af00ae (patch)
treef633846e42bdb3246685eda0c105a3653358fd86 /sys/net
parent25912ea3a79e402ad5e2b3e92059c9ae71551f65 (diff)
in DIOCCHANGERULE, properly initialize table, if used in NAT rule.
from Boris Polevoy <vapcom at mail dot ru>, ok mcbride@
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/pf_ioctl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/net/pf_ioctl.c b/sys/net/pf_ioctl.c
index c89820429bf..fa4dd38e577 100644
--- a/sys/net/pf_ioctl.c
+++ b/sys/net/pf_ioctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf_ioctl.c,v 1.157 2005/08/18 10:32:56 pascoe Exp $ */
+/* $OpenBSD: pf_ioctl.c,v 1.158 2005/09/05 14:51:08 dhartmei Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -1600,6 +1600,9 @@ pfioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct proc *p)
error = EINVAL;
if (pf_anchor_setup(newrule, ruleset, pcr->anchor_call))
error = EINVAL;
+ TAILQ_FOREACH(pa, &pf_pabuf, entries)
+ if (pf_tbladdr_setup(ruleset, &pa->addr))
+ error = EINVAL;
if (newrule->overload_tblname[0]) {
if ((newrule->overload_tbl = pfr_attach_table(