Project

General

Profile

« Previous | Next » 

Revision 2f3554bb

Added by Jim Pingle about 14 years ago

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.

View differences:

etc/inc/ipsec.inc
144 144
 */
145 145
function ipsec_get_phase1_dst(& $ph1ent) {
146 146
	global $g;
147

  
147
	if (!$ph1ent['remote-gateway'])
148
		return false;
148 149
	$rg = $ph1ent['remote-gateway'];
149 150
	if (!is_ipaddr($rg)) {
150 151
		if(! $g['booting'])

Also available in: Unified diff