SCTP: Uncomfirmed transports can't become Inactive

Do not set Unconfirmed transports to Inactive state. This may
result in an inactive association being destroyed since we start
counting errors on "inactive" transports against the association.
This was found at the SCTP interop event.

Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>

+6 -1
+6 -1
net/sctp/associola.c
··· 727 727 break; 728 728 729 729 case SCTP_TRANSPORT_DOWN: 730 - transport->state = SCTP_INACTIVE; 730 + /* if the transort was never confirmed, do not transition it 731 + * to inactive state. 732 + */ 733 + if (transport->state != SCTP_UNCONFIRMED) 734 + transport->state = SCTP_INACTIVE; 735 + 731 736 spc_state = SCTP_ADDR_UNREACHABLE; 732 737 break; 733 738