Skip to content

Commit

Permalink
[NETFILTER]: nf_conntrack_netlink: fix unbalanced locking
Browse files Browse the repository at this point in the history
Properly drop nf_conntrack_lock on tuple parsing error.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Feb 1, 2008
1 parent 99fa5f5 commit 1d670fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/netfilter/nf_conntrack_netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -1237,7 +1237,7 @@ ctnetlink_new_conntrack(struct sock *ctnl, struct sk_buff *skb,
CTA_TUPLE_MASTER,
u3);
if (err < 0)
return err;
goto out_unlock;

master_h = __nf_conntrack_find(&master, NULL);
if (master_h == NULL) {
Expand Down

0 comments on commit 1d670fd

Please sign in to comment.