diff options
author | smos <seth.mos@dds.nl> | 2011-02-21 12:21:26 +0100 |
---|---|---|
committer | smos <seth.mos@dds.nl> | 2011-02-21 12:21:26 +0100 |
commit | 603b434687a68bb86160be8a3b2a8016c77b75a6 (patch) | |
tree | 8d9715edeef8671d2012a3c3a2bd16ccc3ac5072 /etc/inc | |
parent | b85f2451435ded45a9b88c4c12b11861031a87e3 (diff) | |
download | pfsense-603b434687a68bb86160be8a3b2a8016c77b75a6.zip pfsense-603b434687a68bb86160be8a3b2a8016c77b75a6.tar.gz |
Make sure to initialize the remote gateway IP variable so that it does not end up with a broken config
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/vpn.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index 8fb2a99..dc8414d 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -1676,6 +1676,7 @@ function reload_tunnel_spd_policy($phase1, $phase2, $old_phase1, $old_phase2) { /* see if this tunnel has a hostname for the remote-gateway, and if so, * try to resolve it now and add it to the list for filterdns */ + $rgip = ""; if (!is_ipaddr($phase1['remote-gateway'])) { if(! $g['booting']) { $rgip = resolve_retry($phase1['remote-gateway']); |