]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
general-functions.pl: do not miscalculate when enumerating IPsec N2N subnet membership
authorPeter Müller <peter.mueller@ipfire.org>
Thu, 22 Apr 2021 16:15:22 +0000 (18:15 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Mon, 9 Aug 2021 07:25:59 +0000 (07:25 +0000)
Fixes: #11235
Cc: Alexander Marx <alexander.marx@ipfire.org>
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
config/cfgroot/general-functions.pl

index 550afcf827b4b5a50c49e99a15593a8c2de6f619..c7df464898e6a68b7a674d4baeddd34ac0b56b64 100644 (file)
@@ -601,7 +601,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) = split (/\//, $ipsecconf{$key}[11]);
+                                       my ($ipsecip,$ipsecsub) = split (/\//, $ipsecsubitem);
                                        $ipsecsub=&iporsubtodec($ipsecsub);
                                        if($ipsecconf{$key}[1] ne $ccdname){
                                                if ( &IpInSubnet ($ip,$ipsecip,$ipsecsub) ){