summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-11-07 19:35:30 +0000
committerErmal <eri@pfsense.org>2013-11-07 19:35:30 +0000
commit892d23bc7a5dc369bfcbbf03dda428a77322bda9 (patch)
tree86377aa883504c99073153dcc1ba4ee8eb6cf09e
parenta00acb4c9f956b02c031b1439ee76a85846b6a18 (diff)
downloadpfsense-892d23bc7a5dc369bfcbbf03dda428a77322bda9.zip
pfsense-892d23bc7a5dc369bfcbbf03dda428a77322bda9.tar.gz
Unset this variable used in the loop to avoid having wrong information
-rw-r--r--etc/inc/filter.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 2567e34..03d6f4d 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -3403,6 +3403,8 @@ function filter_generate_ipsec_rules() {
$ipfrules .= "# Could not locate interface for IPsec: {$descr}\n";
continue;
}
+
+ unset($gateway);
/* add endpoint routes to correct gateway on interface */
if((is_ipaddrv4($rgip)) && (interface_has_gateway($parentinterface))) {
$gateway = get_interface_gateway($parentinterface);
OpenPOWER on IntegriCloud