]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
Forward Firewall: bugfix: counter failure when adding one host to more than 1 Group
authorAlexander Marx <amarx@ipfire.org>
Mon, 29 Apr 2013 14:12:14 +0000 (16:12 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 9 Aug 2013 12:13:11 +0000 (14:13 +0200)
html/cgi-bin/fwhosts.cgi

index c984ee07ff35b5fb0ac5602c17ce417c6a2e139f..aa4006869ca25a689f6b61f66cb776a4d77613fb 100755 (executable)
@@ -669,7 +669,7 @@ if ($fwhostsettings{'ACTION'} eq 'savegrp')
                }elsif($updcounter eq 'host'){
                        foreach my $key (keys %customhost) {
                                if ($customhost{$key}[0] eq $fwhostsettings{'CUST_SRC_HOST'}){
-                                       $customhost{$key}[4]=$customhost{$key}[3]+1;
+                                       $customhost{$key}[4]=$customhost{$key}[4]+1;
                                }
                        }
                        &General::writehasharray("$confighost", \%customhost);