]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
sctp: Add address type check while process paramaters of ASCONF chunk
authorWei Yongjun <yjwei@cn.fujitsu.com>
Fri, 9 May 2008 22:11:53 +0000 (15:11 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 May 2008 10:11:48 +0000 (03:11 -0700)
commitc4492586a618d18e8a5343a04bad0ec606064846
treecf9f5a38e3e9330edf61699f5c4cb8ae8876b879
parent6e40a915de82e00d18f75941e531b40c4e0d94c4
sctp: Add address type check while process paramaters of ASCONF chunk

If socket is create by AF_INET type, add IPv6 address to asoc will cause
kernel panic while packet is transmitted on that transport.

This patch add address type check before process paramaters of ASCONF
chunk. If peer is not support this address type, return with error
invald parameter.

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