summaryrefslogtreecommitdiffstats
path: root/extensions/libxt_LOG.man
diff options
context:
space:
mode:
authorPhil Oester <kernel@linuxace.com>2013-09-26 09:06:58 -0700
committerPablo Neira Ayuso <pablo@netfilter.org>2013-09-27 16:28:51 +0200
commit03e227017cca4f6d62a434bbaacf07e2869775b9 (patch)
tree4461527f6a948fd22f6b130623b4b5b9d076f657 /extensions/libxt_LOG.man
parentf70e1d675ae70f607e28ea07d8e024ccf283374a (diff)
libxtables: xtables_ipmask_to_numeric incorrect with non-CIDR masks
As pointed out by Peter Hoelsken, rules created with non-standard masks such as 0.255.0.0, 0.0.255.0, etc. are displayed when output with iptables -L in CIDR notation as -1. This is because the cidr variable in xtables_ipmask_to_numeric is unsigned, and the return value of -1 from xtables_ipmask_to_cidr is therefore converted to UINT_MAX. Add a cast to workaround the issue. This closes netfilter bugzilla #854. Signed-off-by: Phil Oester <kernel@linuxace.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'extensions/libxt_LOG.man')
0 files changed, 0 insertions, 0 deletions