]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[NETFILTER]: ipt_CLUSTERIP: fix oops in checkentry function
authorJaroslav Kysela <perex@suse.cz>
Tue, 10 Apr 2007 20:26:48 +0000 (13:26 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Apr 2007 20:26:48 +0000 (13:26 -0700)
commit50c9cc2e540aeaab78ab548a8d42568977c6844f
treeb00c30333f5d124a14e371f4bcf5a69051a2df33
parent15d33c070ddde99f7368e6b17b71d22c866f97d9
[NETFILTER]: ipt_CLUSTERIP: fix oops in checkentry function

The clusterip_config_find_get() already increases entries reference
counter, so there is no reason to do it twice in checkentry() callback.

This causes the config to be freed before it is removed from the list,
resulting in a crash when adding the next rule.

Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/netfilter/ipt_CLUSTERIP.c