summaryrefslogtreecommitdiffstats
path: root/src/etc/inc/ipsec.inc
diff options
context:
space:
mode:
authorLuiz Otavio O Souza <luiz@netgate.com>2015-11-22 07:21:49 -0600
committerLuiz Otavio O Souza <luiz@netgate.com>2015-11-22 07:21:49 -0600
commitdc0f709e8a6ce7c6d40e8e2ae0742bda22ac642c (patch)
tree8546bb96bea21afcc74885410ee36849d9d744dd /src/etc/inc/ipsec.inc
parentea792608e8aab65bdb8635783a394c17de5ddd17 (diff)
downloadpfsense-dc0f709e8a6ce7c6d40e8e2ae0742bda22ac642c.zip
pfsense-dc0f709e8a6ce7c6d40e8e2ae0742bda22ac642c.tar.gz
Convert all the occurrences of $config['ipsec']['enable'] in filter.inc, ipsec.inc and service-utils.inc
Fix ruleset when IPSEC is enabled but there are no Phase 1 entries. Issue: #5487
Diffstat (limited to 'src/etc/inc/ipsec.inc')
-rw-r--r--src/etc/inc/ipsec.inc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/etc/inc/ipsec.inc b/src/etc/inc/ipsec.inc
index 5d45ef1..502cc37 100644
--- a/src/etc/inc/ipsec.inc
+++ b/src/etc/inc/ipsec.inc
@@ -475,11 +475,9 @@ function ipsec_phase2_status(&$ipsec_status, &$phase2) {
* Wrapper to call pfSense_ipsec_list_sa() when IPsec is enabled
*/
function ipsec_list_sa() {
- global $config;
- if (isset($config['ipsec']['enable'])) {
+ if (ipsec_enabled())
return pfSense_ipsec_list_sa();
- }
return array();
}
OpenPOWER on IntegriCloud