]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
netfilter: xt_TEE: fix NULL dereference
authorEric Dumazet <edumazet@google.com>
Tue, 20 Oct 2015 01:02:01 +0000 (18:02 -0700)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 22 Oct 2015 10:55:25 +0000 (12:55 +0200)
commit45efccdbec3cd465c4776ed9ca1d7b1bba1b7e34
treec0fd2f7fb693c42f116985aa8c913013e4bae88d
parent104eb270e665f4fcd8cb8c8ab4c4d4538c604e92
netfilter: xt_TEE: fix NULL dereference

iptables -I INPUT ... -j TEE --gateway 10.1.2.3

<crash> because --oif was not specified

tee_tg_check() sets ->priv pointer to NULL in this case.

Fixes: bbde9fc1824a ("netfilter: factor out packet duplication for IPv4/IPv6")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/xt_TEE.c