]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nft_ct: fix unconditional dump of 'dir' attr
authorArturo Borrero <arturo.borrero.glez@gmail.com>
Fri, 17 Jan 2014 01:28:45 +0000 (02:28 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 5 Feb 2014 12:16:17 +0000 (13:16 +0100)
commitf808f1e25dbc0046cf4187859800f362dc7d405f
tree5099bc9bb244f5d157bd4d10397f31a4588a7210
parent9e2781319d776a9a480bbfef86426928256ce487
netfilter: nft_ct: fix unconditional dump of 'dir' attr

We want to make sure that the information that we get from the kernel can
be reinjected without troubles. The kernel shouldn't return an attribute
that is not required, or even prohibited.

Dumping unconditionally NFTA_CT_DIRECTION could lead an application in
userspace to interpret that the attribute was originally set, while it
was not.

Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_ct.c