Florian Westphal 6fc27a2497 bridge: ebtables: don't crash when using dnat target in output chains
[ Upstream commit b23c0742c2ce7e33ed79d10e451f70fdb5ca85d1 ]

xt_in() returns NULL in the output hook, skip the pkt_type change for
that case, redirection only makes sense in broute/prerouting hooks.

Reported-by: Tom Yan <tom.ty89@gmail.com>
Cc: Linus Lüssing <linus.luessing@c0d3.blue>
Fixes: cf3cb246e277d ("bridge: ebtables: fix reception of frames DNAT-ed to bridge device/port")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-12-05 15:36:56 +01:00
..
2019-11-10 11:25:32 +01:00
2019-09-16 08:20:44 +02:00
2019-06-22 08:16:14 +02:00
2019-11-06 12:43:37 +01:00
2019-09-06 10:20:50 +02:00
2019-12-01 09:13:35 +01:00
2019-03-19 13:13:23 +01:00
2019-01-09 17:14:46 +01:00