Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c537b75a authored by Patrick McHardy's avatar Patrick McHardy Committed by David S. Miller
Browse files

[NETFILTER]: ctnetlink: fix reference count leak



When NFA_NEST exceeds the skb size the protocol reference is leaked.

Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 22e7410b
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -153,6 +153,7 @@ ctnetlink_dump_protoinfo(struct sk_buff *skb, const struct ip_conntrack *ct)
	return ret;
	return ret;


nfattr_failure:
nfattr_failure:
	ip_conntrack_proto_put(proto);
	return -1;
	return -1;
}
}


+1 −0
Original line number Original line Diff line number Diff line
@@ -161,6 +161,7 @@ ctnetlink_dump_protoinfo(struct sk_buff *skb, const struct nf_conn *ct)
	return ret;
	return ret;


nfattr_failure:
nfattr_failure:
	nf_ct_proto_put(proto);
	return -1;
	return -1;
}
}