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

Commit bd4a2624 authored by Harout Hedeshian's avatar Harout Hedeshian
Browse files

tcp: prevent tcp_nuke_addr from purging v4 sockets on v6 addr



Do not kill IPv4 sockets if the KILLADDR IOCTL was called with
an IPv6 address.

Change-Id: I0559c72bf8b317ddf3ab4a93dbb5c26054c9bfb3
Signed-off-by: default avatarHarout Hedeshian <harouth@codeaurora.org>
parent c952020e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -3222,6 +3222,9 @@ restart:
			if (family == AF_INET6) {
				struct in6_addr *s6;

				if (sk->sk_family == AF_INET)
					continue;

				s6 = &sk->sk_v6_rcv_saddr;
				if (ipv6_addr_type(s6) == IPV6_ADDR_MAPPED)
					continue;