sctp: fix potential panics in the SCTP-AUTH API.
commitbe9467bd75b522a3db0369c12db739f797cfec6a
authorVlad Yasevich <vladislav.yasevich@hp.com>
Thu, 28 Aug 2008 05:41:00 +0000 (27 22:41 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 8 Sep 2008 11:44:24 +0000 (8 04:44 -0700)
tree7502987ac24bf9d0788394285b8055149d82effa
parentd01885e51bf577745ba935c70b55fe1405d6b632
sctp: fix potential panics in the SCTP-AUTH API.

[ Upstream commit 5e739d1752aca4e8f3e794d431503bfca3162df4 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/sctp/endpointola.c
net/sctp/socket.c