]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit33a16955dbc648ba3e157bb59876fcc0e8188788
tree42973ed278206d0342f35001dd78f0fa09390f8a
parent1244a8ef8c4b37005bf20bff0f0b6afeda4a6978
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