[NETFILTER] ctnetlink: Fix refcount leak ip_conntrack/nat_proto
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 22 Nov 2005 22:54:34 +0000 (14:54 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Nov 2005 22:54:34 +0000 (14:54 -0800)
commit00cb277a4a1fb76aafb2fb28aa99f30546e619c5
tree8ea9a2434eb55d2ff60bbff3dbc85817a7607493
parent0ff60a45678e67b2547256a636fd00c1667ce4fa
[NETFILTER] ctnetlink: Fix refcount leak ip_conntrack/nat_proto

Remove proto == NULL checking since ip_conntrack_[nat_]proto_find_get
always returns a valid pointer.

Fix missing ip_conntrack_proto_put in some paths.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Harald Welte <laforge@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/netfilter/ip_conntrack_netlink.c