sctp: verify length provided in heartbeat information parameter
authorThomas Graf <tgraf@suug.ch>
Fri, 30 Nov 2012 02:16:27 +0000 (02:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Nov 2012 17:25:52 +0000 (12:25 -0500)
commit06a31e2b918dd992dd104e082ec8a33d6235c7b3
tree42973ed278206d0342f35001dd78f0fa09390f8a
parentc07135633bee3f01a6454d15b6411f32cfbeb2fd
sctp: verify length provided in heartbeat information parameter

If the variable parameter length provided in the mandatory
heartbeat information parameter exceeds the calculated payload
length the packet has been corrupted. Reply with a parameter
length protocol violation message.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/sm_statefuns.c