aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2006-11-27 10:26:25 -0800
committerDavid S. Miller <davem@sunset.davemloft.net>2006-11-28 20:59:36 -0800
commitc537b75a3ba9f5d2569f313742cd379dff6ceb70 (patch)
tree5e6d8da1a68c40e2deef74002727f4553c0f242d /net/netfilter
parent22e7410b760b9c1777839fdd10382c60df8cbda2 (diff)
downloadkernel_samsung_tuna-c537b75a3ba9f5d2569f313742cd379dff6ceb70.zip
kernel_samsung_tuna-c537b75a3ba9f5d2569f313742cd379dff6ceb70.tar.gz
kernel_samsung_tuna-c537b75a3ba9f5d2569f313742cd379dff6ceb70.tar.bz2
[NETFILTER]: ctnetlink: fix reference count leak
When NFA_NEST exceeds the skb size the protocol reference is leaked. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netfilter')
-rw-r--r--net/netfilter/nf_conntrack_netlink.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/netfilter/nf_conntrack_netlink.c b/net/netfilter/nf_conntrack_netlink.c
index 77a46ee..ab67c2b 100644
--- a/net/netfilter/nf_conntrack_netlink.c
+++ b/net/netfilter/nf_conntrack_netlink.c
@@ -161,6 +161,7 @@ ctnetlink_dump_protoinfo(struct sk_buff *skb, const struct nf_conn *ct)
return ret;
nfattr_failure:
+ nf_ct_proto_put(proto);
return -1;
}