]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerJiri Slaby <jslaby@suse.cz>
Wed, 2 Mar 2016 15:29:08 +0000 (16:29 +0100)
commitcccf7a00505a2fe33e23599bdedc4c3993e28a10
tree0ba38c18c4e1bd8b42c86d8f81799332c5cd944e
parente03e0613e6333d3cd5c322f6486273b98e007882
sctp: translate network order to host order when users get a hmacid

[ 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: Jiri Slaby <jslaby@suse.cz>
net/sctp/socket.c