summaryrefslogtreecommitdiffstats
path: root/etc/inc/vpn.inc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2015-03-06 11:45:30 -0300
committerRenato Botelho <garga@FreeBSD.org>2015-03-06 11:45:36 -0300
commit588d3cf606229474acf28920d4f66c415b896aa8 (patch)
treeb8c4aaa7e6d81b9f31d7fd472810b64ce58a7a04 /etc/inc/vpn.inc
parentb93bc1fd4995e731a51d461c8c4b08610ddbf7c1 (diff)
downloadpfsense-588d3cf606229474acf28920d4f66c415b896aa8.zip
pfsense-588d3cf606229474acf28920d4f66c415b896aa8.tar.gz
Check if it's an array before call foreach(). Ticket
Diffstat (limited to 'etc/inc/vpn.inc')
-rw-r--r--etc/inc/vpn.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc
index 1299859..c271224 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -382,7 +382,7 @@ EOD;
$strongswan .= "\t\t\tnbns = " . implode(",", $cfgservers) . "\n";
unset($cfgservers);
- if (isset($a_client['net_list'])) {
+ if (isset($a_client['net_list']) && is_array($a_phase2)) {
$net_list = '';
foreach ($a_phase2 as $ph2ent) {
if (isset($ph2ent['disabled']))
OpenPOWER on IntegriCloud