]> 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:27:16 +0000 (12:27 +0100)
commitd840d02aee26d2f71b9d411b1960eb5b2423b19a
tree72b94ac4b25289af65723cce5b92bf7cc56a77a9
parent132557976f619a6c9b361442d5c4993eee588cc2
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