]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sctp: translate network order to host order when users get a hmacid
authorXin Long <lucien.xin@gmail.com>
Wed, 3 Feb 2016 15:33:30 +0000 (23:33 +0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 26 May 2016 22:45:20 +0000 (15:45 -0700)
commitd74345037dcb52c1dd1285dd173c48105b788f89
treeb9e3ce231a63eb40aa3a20ea9f98649a85de6541
parent3b7647a7128ddc1274027350a202dffb8951972b
sctp: translate network order to host order when users get a hmacid

Orabug: 23330948

[ Upstream commit 7a84bd46647ff181eb2659fdc99590e6f16e501d ]

Commit ed5a377d87dc ("sctp: translate host order to network order when
setting a hmacid") corrected the hmacid byte-order when setting a hmacid.
but the same issue also exists on getting a hmacid.

We fix it by changing hmacids to host order when users get them with
getsockopt.

Fixes: Commit ed5a377d87dc ("sctp: translate host order to network order when setting a hmacid")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
(cherry picked from commit bb6f76ba4c6b29e4650310982dc61639d34fa833)

Signed-off-by: Dan Duval <dan.duval@oracle.com>
net/sctp/socket.c