]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
netfilter: xt_socket: check sk before checking for netns.
authorFlavio Leitner <fbl@redhat.com>
Thu, 27 Sep 2018 22:36:28 +0000 (19:36 -0300)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 28 Sep 2018 12:47:41 +0000 (14:47 +0200)
commit40e4f26e6a14fc1496eabb8b0004a547303114e6
treed6c9c65b4fdff4d5ff1589806a83a056510865e6
parent421c119f558761556afca6a62ad183bc2d8659e0
netfilter: xt_socket: check sk before checking for netns.

Only check for the network namespace if the socket is available.

Fixes: f564650106a6 ("netfilter: check if the socket netns is correct.")
Reported-by: Guenter Roeck <linux@roeck-us.net>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Flavio Leitner <fbl@redhat.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/xt_socket.c