diff options
author | Ermal <eri@pfsense.org> | 2013-11-07 19:35:30 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-11-07 19:35:43 +0000 |
commit | 6d5fcf571b3d88fa0dc5ae5064d5682c7a80469b (patch) | |
tree | 926311a06bf019c3607ed3acde9e3da539ec5455 /etc/inc | |
parent | 8194f2884b09b2e286230f6da5931f86f5b2e74e (diff) | |
download | pfsense-6d5fcf571b3d88fa0dc5ae5064d5682c7a80469b.zip pfsense-6d5fcf571b3d88fa0dc5ae5064d5682c7a80469b.tar.gz |
Unset this variable used in the loop to avoid having wrong information
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/filter.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index a727184..cabc3d6 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -3412,6 +3412,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); |