Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 9e45b2f0 authored by Patrick McHardy's avatar Patrick McHardy Committed by Greg Kroah-Hartman
Browse files

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: default avatarJaroslav Kysela <perex@suse.cz>
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 8e6697b5
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment