]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: ctnetlink: fix incorrect NAT expectation dumping
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 9 Jul 2013 18:16:39 +0000 (20:16 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 15 Jul 2013 09:14:51 +0000 (11:14 +0200)
commit9baf1facb851871f6cd1cf0010f35469a5cbd48d
tree2bbff5c8c07245d284101a81121d0a4c6b1d9c24
parent8285b1a0f919d2bf2f996c41c3d5beb3d29c1710
netfilter: ctnetlink: fix incorrect NAT expectation dumping

nf_ct_expect_alloc leaves unset the expectation NAT fields. However,
ctnetlink_exp_dump_expect expects them to be zeroed in case they are
not used, which may not be the case. This results in dumping the NAT
tuple of the expectation when it should not.

Fix it by zeroing the NAT fields of the expectation.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_conntrack_expect.c