Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cc75689a authored by Vlad Yasevich's avatar Vlad Yasevich
Browse files

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: default avatarVlad Yasevich <vladislav.yasevich@hp.com>
parent 2772b495
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -727,7 +727,12 @@ void sctp_assoc_control_transport(struct sctp_association *asoc,
		break;

	case SCTP_TRANSPORT_DOWN:
		/* if the transort was never confirmed, do not transition it
		 * to inactive state.
		 */
		if (transport->state != SCTP_UNCONFIRMED)
			transport->state = SCTP_INACTIVE;

		spc_state = SCTP_ADDR_UNREACHABLE;
		break;