summaryrefslogtreecommitdiffstats
path: root/etc/inc/filter.inc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-07-16 19:38:22 +0000
committerErmal Luçi <eri@pfsense.org>2008-07-16 19:38:22 +0000
commitafaf2b2edaeaaead2def3d9500451e06261b1979 (patch)
treeec589f6f033fb82e53ce48dbb577517fdc977119 /etc/inc/filter.inc
parentd62ba478cd4b704c1a96a02c65f14ef67cf5adfc (diff)
downloadpfsense-afaf2b2edaeaaead2def3d9500451e06261b1979.zip
pfsense-afaf2b2edaeaaead2def3d9500451e06261b1979.tar.gz
Foreach only if it is an array to be on the safe side.
Diffstat (limited to 'etc/inc/filter.inc')
-rw-r--r--etc/inc/filter.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 6c34c6c..f3b8317 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -2507,7 +2507,8 @@ EOD;
*/
$prot_used_esp = false;
$prot_used_ah = false;
-
+
+ if (is_array($config['ipsec']['phase2']))
foreach ($config['ipsec']['phase2'] as $ph2ent) {
/* only evaluate ph2's bound to our ph1 */
OpenPOWER on IntegriCloud