summaryrefslogtreecommitdiffstats
path: root/etc/inc/ipsec.inc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-06-27 14:06:33 -0400
committerjim-p <jimp@pfsense.org>2011-06-27 14:06:33 -0400
commit8a385f42742b9f1da57f53639436f7bea0c5ada1 (patch)
tree942e8ad24b27423f5ccc418fb3be4721f954f9b2 /etc/inc/ipsec.inc
parent84296ca3f75378ae027cd2030d41cc41d68fc901 (diff)
parent2f3554bba15ceabca965aabb6c9cc3b4e33e88d4 (diff)
downloadpfsense-8a385f42742b9f1da57f53639436f7bea0c5ada1.zip
pfsense-8a385f42742b9f1da57f53639436f7bea0c5ada1.tar.gz
Merge remote branch 'upstream/master'
Diffstat (limited to 'etc/inc/ipsec.inc')
-rw-r--r--etc/inc/ipsec.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/ipsec.inc b/etc/inc/ipsec.inc
index 7303dcf..aa04430 100644
--- a/etc/inc/ipsec.inc
+++ b/etc/inc/ipsec.inc
@@ -152,7 +152,8 @@ function ipsec_get_phase1_src(& $ph1ent) {
*/
function ipsec_get_phase1_dst(& $ph1ent) {
global $g;
-
+ if (!$ph1ent['remote-gateway'])
+ return false;
$rg = $ph1ent['remote-gateway'];
if (!is_ipaddr($rg)) {
if(! $g['booting'])
OpenPOWER on IntegriCloud