]> git.ipfire.org Git - thirdparty/iptables.git/commit
libxt_policy: cannot set spi/reqid numbers higher than 0x7fffffff
authorChristian Perle <chris@linuxinfotag.de>
Tue, 17 Feb 2009 16:31:52 +0000 (17:31 +0100)
committerPatrick McHardy <kaber@trash.net>
Tue, 17 Feb 2009 16:31:52 +0000 (17:31 +0100)
commit6db2ded2f22a7e78743c86af523b8430876582e9
tree9c4d9eaf29ac49bc094b285566f3dd6c80e50ebd
parent0ff6b46a331b7fa620c40d3110be5b3deb3c40a6
libxt_policy: cannot set spi/reqid numbers higher than 0x7fffffff

http://bugzilla.netfilter.org/show_bug.cgi?id=577

When using the -m policy match, the option argument for --spi is converted
using strtol(), which returns a signed 32 bit value, so the highest
positive value is 0x7fffffff. Instead strtoul() should be used.
The same applies for the --reqid option argument.

Signed-off-by: Patrick McHardy <kaber@trash.net>
extensions/libip6t_policy.c
extensions/libipt_policy.c