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

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

sctp: correctly save sctp_adaptation from parameter.



The INIT perameter carries the adapatation value in network-byte
order.  We need to store it in host byte order as expected
by data types and the user API.

Signed-off-by: default avatarVlad Yasevich <vladislav.yasevich@hp.com>
parent 96cd0d3d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2467,7 +2467,7 @@ static int sctp_process_param(struct sctp_association *asoc,
		break;

	case SCTP_PARAM_ADAPTATION_LAYER_IND:
		asoc->peer.adaptation_ind = param.aind->adaptation_ind;
		asoc->peer.adaptation_ind = ntohl(param.aind->adaptation_ind);
		break;

	case SCTP_PARAM_SET_PRIMARY: