From 892d23bc7a5dc369bfcbbf03dda428a77322bda9 Mon Sep 17 00:00:00 2001 From: Ermal Date: Thu, 7 Nov 2013 19:35:30 +0000 Subject: [PATCH] Unset this variable used in the loop to avoid having wrong information --- etc/inc/filter.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 2567e34b7c..03d6f4da09 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);