summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorWillem de Bruijn <willemb@google.com>2016-06-24 16:02:35 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-07-11 09:31:11 -0700
commit348a1cd82cfc4c4b4f7b6775aae398c337cc03b8 (patch)
treea0768c01d10eb39b9f622b19d7b61904bf168325 /kernel
parent688feac4897c2a613d730e48b83e3ba4084953be (diff)
sock_diag: do not broadcast raw socket destruction
[ Upstream commit 9a0fee2b552b1235fb1706ae1fc664ae74573be8 ] Diag intends to broadcast tcp_sk and udp_sk socket destruction. Testing sk->sk_protocol for IPPROTO_TCP/IPPROTO_UDP alone is not sufficient for this. Raw sockets can have the same type. Add a test for sk->sk_type. Fixes: eb4cb008529c ("sock_diag: define destruction multicast groups") Signed-off-by: Willem de Bruijn <willemb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions