sctp: check invalid value of length parameter in error cause
authorShan Wei <shanwei@cn.fujitsu.com>
Tue, 19 Apr 2011 21:26:26 +0000 (21:26 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Apr 2011 08:51:02 +0000 (01:51 -0700)
commit96ca468b86b09aa6a001ac65dba93a6c4a3692a5
tree2fe288fb35d4dd0faa0cd9ea0fd6c32690ec387d
parent8a00be1c89cc17fda5f438794ff27449af6f00f1
sctp: check invalid value of length parameter in error cause

RFC4960, section 3.3.7 said:
 If an endpoint receives an ABORT with a format error or no TCB is
 found, it MUST silently discard it.

When an endpoint receives ABORT that parameter value is invalid,
drop it.

Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com>
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/sm_statefuns.c