From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter =?utf-8?q?M=C3=BCller?= To: development@lists.ipfire.org Subject: [PATCH] general-functions.pl: do not miscalculate when enumerating IPsec N2N subnet membership Date: Thu, 22 Apr 2021 18:15:22 +0200 Message-ID: <872d1856-053d-5c5e-e7d1-dfee8e2bff5b@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0828617887515465986==" List-Id: --===============0828617887515465986== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Fixes: #11235 Cc: Alexander Marx Signed-off-by: Peter M=C3=BCller --- config/cfgroot/general-functions.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/cfgroot/general-functions.pl b/config/cfgroot/general-fun= ctions.pl index a6656ccf5..00ace0361 100644 --- a/config/cfgroot/general-functions.pl +++ b/config/cfgroot/general-functions.pl @@ -530,7 +530,7 @@ sub checksubnets foreach my $key (keys %ipsecconf){ if ($ipsecconf{$key}[11] ne '' && $ipsecconf{$key}[36] eq ""){ foreach my $ipsecsubitem (split(/\|/, $ipsecconf{$key}[11])) { - my ($ipsecip,$ipsecsub) =3D split (/\//, $ipsecconf{$key}[11]); + my ($ipsecip,$ipsecsub) =3D split (/\//, $ipsecsubitem); $ipsecsub=3D&iporsubtodec($ipsecsub); if($ipsecconf{$key}[1] ne $ccdname){ if ( &IpInSubnet ($ip,$ipsecip,$ipsecsub) ){ --=20 2.26.2 --===============0828617887515465986==--