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.

This commit is contained in:
jim-p 2011-06-27 14:05:01 -04:00
parent 39e268c4fd
commit 2f3554bba1

View File

@ -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'])