summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPetr Malat <oss@malat.biz>2022-04-09 08:36:11 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-04-20 09:19:35 +0200
commit37e54d151eab6c796dfea7cafa32efb010d92b4b (patch)
treea7eea8bc0aa9338dcf83b62ca87156743db493a1 /tools
parenta05f5e26cb8bb4d07e0595545fcad1bb406f0085 (diff)
sctp: Initialize daddr on peeled off socket
[ Upstream commit 8467dda0c26583547731e7f3ea73fc3856bae3bf ] Function sctp_do_peeloff() wrongly initializes daddr of the original socket instead of the peeled off socket, which makes getpeername() return zeroes instead of the primary address. Initialize the new socket instead. Fixes: d570ee490fb1 ("[SCTP]: Correctly set daddr for IPv6 sockets during peeloff") Signed-off-by: Petr Malat <oss@malat.biz> Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> Link: https://lore.kernel.org/r/20220409063611.673193-1-oss@malat.biz Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions