sctp: fix potential panics in the SCTP-AUTH API.
authorVlad Yasevich <vladislav.yasevich@hp.com>
Thu, 21 Aug 2008 10:34:25 +0000 (03:34 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Aug 2008 10:34:25 +0000 (03:34 -0700)
commit5e739d1752aca4e8f3e794d431503bfca3162df4
treec5bdef49d12fbd4bb0eae6fca102607346390cb5
parent6a55617ed5d1aa62b850de2cf66f5ede2eef4825
sctp: fix potential panics in the SCTP-AUTH API.

All of the SCTP-AUTH socket options could cause a panic
if the extension is disabled and the API is envoked.

Additionally, there were some additional assumptions that
certain pointers would always be valid which may not
always be the case.

This patch hardens the API and address all of the crash
scenarios.

Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/endpointola.c
net/sctp/socket.c