diff options
author | jim-p <jimp@pfsense.org> | 2011-06-27 14:05:01 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-06-27 14:05:01 -0400 |
commit | 2f3554bba15ceabca965aabb6c9cc3b4e33e88d4 (patch) | |
tree | 6eeeb22aefc5d4fc4f6154e3fc3ad48904f65c18 /etc | |
parent | 39e268c4fd3c5e5da461dc24bc2445eceb28360c (diff) | |
download | pfsense-2f3554bba15ceabca965aabb6c9cc3b4e33e88d4.zip pfsense-2f3554bba15ceabca965aabb6c9cc3b4e33e88d4.tar.gz |
Bail out of ipsec_get_phase1_dst if there is no remote gateway, else it falls into running resolve_retry() with invalid parameters causing a long delay in returning.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/ipsec.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/ipsec.inc b/etc/inc/ipsec.inc index 7371702..07c4869 100644 --- a/etc/inc/ipsec.inc +++ b/etc/inc/ipsec.inc @@ -144,7 +144,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']) |