]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NETFILTER: fix forgotten module release in xt_CONNMARK and xt_CONNSECMARK
authorJan Engelhardt <jengelh@computergmbh.de>
Tue, 11 Dec 2007 01:39:40 +0000 (09:39 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 14 Dec 2007 17:51:08 +0000 (09:51 -0800)
commit3e3deae8d7a9e5b73804dca55252bcf3aea19504
treee1bb3fb829f9417dcf120ccfc956d3c0ede65412
parent5b5581b721cdc76fe1fe8f89f22ae613198acdbd
NETFILTER: fix forgotten module release in xt_CONNMARK and xt_CONNSECMARK

[NETFILTER]: fix forgotten module release in xt_CONNMARK and xt_CONNSECMARK

[ Upstream commit: 67b4af297033f5f65999885542f95ba7b562848a ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/netfilter/xt_CONNMARK.c
net/netfilter/xt_CONNSECMARK.c