]> git.baikalelectronics.ru Git - kernel.git/commit
[NETFILTER]: fix forgotten module release in xt_CONNMARK and xt_CONNSECMARK
authorJan Engelhardt <jengelh@computergmbh.de>
Fri, 30 Nov 2007 13:01:50 +0000 (00:01 +1100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 30 Nov 2007 13:01:50 +0000 (00:01 +1100)
commitbb8b995c9ec5d4112bf23e45b5e57082b16e3546
treefc719bd0cd194a496d05ff5e0816cbc06e9d1727
parentd9c9d0f339b79fbf38d0b29908562b1b165653f8
[NETFILTER]: fix forgotten module release in xt_CONNMARK and xt_CONNSECMARK

Fix forgotten module release in xt_CONNMARK and xt_CONNSECMARK

When xt_CONNMARK is used outside the mangle table and the user specified
"--restore-mark", the connmark_tg_check() function will (correctly)
error out, but (incorrectly) forgets to release the L3 conntrack module.
Same for xt_CONNSECMARK.

Fix is to move the call to acquire the L3 module after the basic
constraint checks.

Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
net/netfilter/xt_CONNMARK.c
net/netfilter/xt_CONNSECMARK.c