mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Foreach only if it is an array to be on the safe side.
This commit is contained in:
parent
d62ba478cd
commit
afaf2b2eda
@ -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 */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user