commit | 59cae0092e4da753b5a2adb32933e0d1b223bcc5 | [log] [tgz] |
---|---|---|
author | Wei Yongjun <yjwei@cn.fujitsu.com> | Thu Jul 02 16:59:49 2009 +0000 |
committer | David S. Miller <davem@davemloft.net> | Fri Jul 03 19:10:10 2009 -0700 |
tree | b2578c0452504d63de9aeaf5029daae5cefef165 | |
parent | c615c9f3f3cea60279b1bb38e8ef27bd575ecd0c [diff] |
xfrm6: fix the proto and ports decode of sctp protocol The SCTP pushed the skb above the sctp chunk header, so the check of pskb_may_pull(skb, nh + offset + 1 - skb->data) in _decode_session6() will never return 0 and the ports decode of sctp will always fail. (nh + offset + 1 - skb->data < 0) Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com> Acked-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>