]> err.no Git - linux-2.6/commit
netfilter: nf_nat_snmp_basic: fix a range check in NAT for SNMP
authorDavid Howells <dhowells@redhat.com>
Wed, 9 Jul 2008 22:06:45 +0000 (15:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Jul 2008 22:06:45 +0000 (15:06 -0700)
commit252815b0cfe711001eff0327872209986b36d490
tree84919cc1b91c8954c859127b8bd652400a1cc3b1
parent6b69fe0c73c0f5a8dacf8f889db3cc9adee53649
netfilter: nf_nat_snmp_basic: fix a range check in NAT for SNMP

Fix a range check in netfilter IP NAT for SNMP to always use a big enough size
variable that the compiler won't moan about comparing it to ULONG_MAX/8 on a
64-bit platform.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/netfilter/nf_nat_snmp_basic.c