[NETFILTER]: ipt_CLUSTERIP: fix oops in checkentry function
commitc0ff8b5abae6dd56585e375a3b34211de037033a
authorJaroslav Kysela <perex@suse.cz>
Fri, 4 May 2007 21:59:07 +0000 (4 23:59 +0200)
committerAdrian Bunk <bunk@stusta.de>
Fri, 4 May 2007 21:59:07 +0000 (4 23:59 +0200)
treeac71f70a8d92cc6f0ac31647e5eff18725860d18
parentc50f63ad108d9f0c607ee365b10cccbff4288b45
[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>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
net/ipv4/netfilter/ipt_CLUSTERIP.c