summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsmos <seth.mos@dds.nl>2011-02-21 12:30:46 +0100
committersmos <seth.mos@dds.nl>2011-02-21 12:30:46 +0100
commit41393f1e4f2d9220e5bf14a101b50bfe1b3a0388 (patch)
tree4862e356b78e484c7c6bbb2a613b5835cb9c9708
parent603b434687a68bb86160be8a3b2a8016c77b75a6 (diff)
downloadpfsense-41393f1e4f2d9220e5bf14a101b50bfe1b3a0388.zip
pfsense-41393f1e4f2d9220e5bf14a101b50bfe1b3a0388.tar.gz
Prevent a empty remote gateway IP from ending up in the config
-rw-r--r--etc/inc/vpn.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc
index dc8414d..8631f67 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -813,6 +813,8 @@ EOD;
continue;
$rgip = $rgmap[$ph1ent['remote-gateway']];
+ if(!$rgip)
+ continue;
$localid = ipsec_idinfo_to_cidr($ph2ent['localid'],true);
$remoteid = ipsec_idinfo_to_cidr($ph2ent['remoteid'],true);
OpenPOWER on IntegriCloud