Code

iptables plugin, utils_ignorelist: Fixed an off-by-one error each.
authorSebastian Harl <sh@tokkee.org>
Thu, 2 Oct 2008 12:53:06 +0000 (14:53 +0200)
committerFlorian Forster <octo@huhu.verplant.org>
Fri, 3 Oct 2008 20:10:40 +0000 (22:10 +0200)
commitee9507500f738d21858f76128501772d212c069c
tree231b79a9740f7a19e06bfd125903c810486cad98
parent39ba035b60b509311874ccf89d11d240c0271a90
iptables plugin, utils_ignorelist: Fixed an off-by-one error each.

Those were introduced when unifying the string handling in commit 5f9ec13b in
cases where the exact length of the string to be copied is passed to sstrncpy
instead of the size of the destination buffer.

In case of the iptables plugin this prevented the table or chain name to match
correctly as the user configuration was truncated. In case of the ignorelist a
given regex was truncated.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/iptables.c
src/utils_ignorelist.c