]> bbs.cooldavid.org Git - net-next-2.6.git/commit
netfilter: ipv6: fix overlap check for fragments
authorShan Wei <shanwei@cn.fujitsu.com>
Fri, 12 Nov 2010 07:51:55 +0000 (08:51 +0100)
committerPatrick McHardy <kaber@trash.net>
Fri, 12 Nov 2010 07:51:55 +0000 (08:51 +0100)
commit22e091e5253da1e9ad7c0a82c2c84446fc403efe
treeb3f892779ab637002bfb9e32c74905b13f81ec75
parentac5aa2e3332ec04889074afdbd1479424d0227a5
netfilter: ipv6: fix overlap check for fragments

The type of FRAG6_CB(prev)->offset is int, skb->len is *unsigned* int,
and offset is int.

Without this patch, type conversion occurred to this expression, when
(FRAG6_CB(prev)->offset + prev->len) is less than offset.

Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/ipv6/netfilter/nf_conntrack_reasm.c