]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commit67b4af297033f5f65999885542f95ba7b562848a
treefc719bd0cd194a496d05ff5e0816cbc06e9d1727
parent9dc0564e862b1b9a4677dec2c736b12169e03e99
[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