Correct the leftsubnet specification for transport mode.

This commit is contained in:
Ermal LUÇI 2014-12-19 21:25:30 +01:00
parent 7c2a9397eb
commit 41c4ef39fd

View File

@ -714,7 +714,7 @@ EOD;
$left_spec = "%any";
} else {
$tmpsubnet = ipsec_get_phase1_src($ph1ent);
if ($leftsubnet_spec[$tmpsubnet])
if (empty($leftsubnet_spec[$tmpsubnet]))
$leftsubnet_spec[$tmpsubnet] = $tmpsubnet;
}