NETFILTER: ipt_CLUSTERIP: fix oops in checkentry function
commit9e45b2f0fd14f032b1fcbaae0b2548274a9cc9be
authorPatrick McHardy <kaber@trash.net>
Tue, 10 Apr 2007 12:47:21 +0000 (10 14:47 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 13 Apr 2007 20:47:03 +0000 (13 13:47 -0700)
tree3290f5f62df7f1ed9d4beee033c3d808ac3ef1a7
parent8e6697b59bda75baa4c0db4d7b9ff4514f032744
NETFILTER: ipt_CLUSTERIP: fix oops in checkentry function

[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: Greg Kroah-Hartman <gregkh@suse.de>
net/ipv4/netfilter/ipt_CLUSTERIP.c