]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: xt_socket: fix broken v0 support
authorEric Dumazet <edumazet@google.com>
Fri, 12 Jul 2013 02:22:19 +0000 (19:22 -0700)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 15 Jul 2013 09:15:21 +0000 (11:15 +0200)
commit1ccf567b11c4f96028a9927fcb4c1f591282d81b
tree8d9202c8b44038254c87f7f03f887073bc976a7c
parent9baf1facb851871f6cd1cf0010f35469a5cbd48d
netfilter: xt_socket: fix broken v0 support

commit 3a77f786410b6 ("netfilter: xt_socket: add XT_SOCKET_NOWILDCARD
flag") added a potential NULL dereference if an old iptables package
uses v0 of the match.

Fix this by removing the test on @info in fast path.

IPv6 can remove the test as well, as it uses v1 or v2.

Reported-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Patrick McHardy <kaber@trash.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/xt_socket.c