diff options
author | smos <seth.mos@dds.nl> | 2011-02-21 12:30:46 +0100 |
---|---|---|
committer | smos <seth.mos@dds.nl> | 2011-02-21 12:30:46 +0100 |
commit | 41393f1e4f2d9220e5bf14a101b50bfe1b3a0388 (patch) | |
tree | 4862e356b78e484c7c6bbb2a613b5835cb9c9708 /etc/inc/vpn.inc | |
parent | 603b434687a68bb86160be8a3b2a8016c77b75a6 (diff) | |
download | pfsense-41393f1e4f2d9220e5bf14a101b50bfe1b3a0388.zip pfsense-41393f1e4f2d9220e5bf14a101b50bfe1b3a0388.tar.gz |
Prevent a empty remote gateway IP from ending up in the config
Diffstat (limited to 'etc/inc/vpn.inc')
-rw-r--r-- | etc/inc/vpn.inc | 2 |
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); |