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

Commit 5030f668 authored by Marcelo Ricardo Leitner's avatar Marcelo Ricardo Leitner Committed by Sasha Levin
Browse files

sctp: Don't advertise IPv4 addresses if ipv6only is set on the socket



[ Upstream commit 471e39df96b9a4c4ba88a2da9e25a126624d7a9c ]

If a socket is set ipv6only, it will still send IPv4 addresses in the
INIT and INIT_ACK packets. This potentially misleads the peer into using
them, which then would cause association termination.

The fix is to not add IPv4 addresses to ipv6only sockets.

Fixes: 1da177e4 ("Linux-2.6.12-rc2")
Reported-by: default avatarCorey Minyard <cminyard@mvista.com>
Signed-off-by: default avatarMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Tested-by: default avatarCorey Minyard <cminyard@mvista.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 05cc8235
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment