]> git.ipfire.org Git - people/dweismueller/ipfire-2.x.git/commit
firewall: Fix off-by-one error in configuration parser
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 2 Jan 2015 11:20:50 +0000 (12:20 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 2 Jan 2015 11:20:50 +0000 (12:20 +0100)
commitd6ef5df18edfd8af46abbd09107cef9d42810cb4
treef557f38e55b5fe596960aea2e242d420b01c86a8
parentb56472d49b2e50d6c8f84023b80c3ee43114bfe1
firewall: Fix off-by-one error in configuration parser

The configuration parser determines how many comma-separated
values there are in a line. If new values are added we need
to check first if those are set in every line to avoid any
undefined behaviour. A wrong comparison parameter was used
which caused that the limit feature was never enabled in
the rule generation.
config/firewall/rules.pl