diff options
author | Ermal LUÇI <eri@pfsense.org> | 2014-12-24 18:21:57 +0100 |
---|---|---|
committer | Ermal LUÇI <eri@pfsense.org> | 2014-12-24 18:21:57 +0100 |
commit | 17318511f9d45ab79670f6d1ee4d1d19481b4254 (patch) | |
tree | 0b504c66e0b71a474041c65596390625298c699a /etc/inc/ipsec.inc | |
parent | 21b2912fc0f072cba213e776333f6f2797041101 (diff) | |
download | pfsense-17318511f9d45ab79670f6d1ee4d1d19481b4254.zip pfsense-17318511f9d45ab79670f6d1ee4d1d19481b4254.tar.gz |
Make this function readble
Diffstat (limited to 'etc/inc/ipsec.inc')
-rw-r--r-- | etc/inc/ipsec.inc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/etc/inc/ipsec.inc b/etc/inc/ipsec.inc index da6ebcc..5722bec 100644 --- a/etc/inc/ipsec.inc +++ b/etc/inc/ipsec.inc @@ -342,11 +342,10 @@ function ipsec_lookup_phase1(& $ph2ent,& $ph1ent) { function ipsec_phase1_status(&$ipsec_status, $ikeid) { foreach ($ipsec_status as $ike) { - if ($ike['id'] != $ikeid) - continue; - if ($ike['status'] == 'established') - return true; - break; + if ($ike['id'] == $ikeid) { + if ($ike['status'] == 'established') + return true; + } } return false; |