diff options
author | smos <seth.mos@dds.nl> | 2012-11-19 09:38:44 +0100 |
---|---|---|
committer | smos <seth.mos@dds.nl> | 2012-11-19 09:38:44 +0100 |
commit | af661ba8b7d8b049ad46f4d44cfd814a5207819f (patch) | |
tree | d1e4b6b8cfa6594a7cf49b25985f83c04f327f82 | |
parent | 0c5c73e5350118c1763b5721c38756dcd3969e33 (diff) | |
download | pfsense-af661ba8b7d8b049ad46f4d44cfd814a5207819f.zip pfsense-af661ba8b7d8b049ad46f4d44cfd814a5207819f.tar.gz |
Do not return here, else we end without any IPsec endoint rules if just one fails.
-rw-r--r-- | etc/inc/filter.inc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 9ae2bb8..66e0fab 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -3231,8 +3231,10 @@ function filter_generate_ipsec_rules() { } else { $parentinterface = $ph1ent['interface']; } - if (empty($FilterIflist[$parentinterface]['descr'])) - return "# Could not locate interface for IPsec: {$descr}\n"; + if (empty($FilterIflist[$parentinterface]['descr'])) { + $ipfrules = "# Could not locate interface for IPsec: {$descr}\n"; + continue; + } /* add endpoint routes to correct gateway on interface */ if(interface_has_gateway($parentinterface)) { |