summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2006-11-05 23:40:31 +0000
committerBill Marquette <billm@pfsense.org>2006-11-05 23:40:31 +0000
commit634d6ab39da2a730f110fcafea04f3fff152cd53 (patch)
treeb830f5f910957975e489ec53d33410c8d31d0c3c
parentc64f404935cb16a8a3dd3474d2597d3cf45ddc7a (diff)
downloadpfsense-634d6ab39da2a730f110fcafea04f3fff152cd53.zip
pfsense-634d6ab39da2a730f110fcafea04f3fff152cd53.tar.gz
MFC [15201]
unset $extport before assigning to it as not all elements of the array are assigned each time through the loop, but all elements are checked and used if already assigned. Oops.
-rw-r--r--etc/inc/filter.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 241ce82..b6b3866 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -764,6 +764,7 @@ function filter_nat_rules_generate() {
update_filter_reload_status("Creating NAT rule {$rule['descr']}");
/* if item is an alias, expand */
+ unset($extport);
if(alias_expand($rule['external-port']))
$extport[0] = alias_expand_value($rule['external-port']);
else
OpenPOWER on IntegriCloud