Skip to content

Commit

Permalink
udp: fix a typo in __udp4_lib_mcast_demux_lookup
Browse files Browse the repository at this point in the history
At this point sk might contain garbage.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Oct 9, 2013
1 parent efe4208 commit f69b923
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv4/udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1847,7 +1847,7 @@ static struct sock *__udp4_lib_mcast_demux_lookup(struct net *net,
if (count != 1 ||
unlikely(!atomic_inc_not_zero_hint(&result->sk_refcnt, 2)))
result = NULL;
else if (unlikely(!__udp_is_mcast_sock(net, sk,
else if (unlikely(!__udp_is_mcast_sock(net, result,
loc_port, loc_addr,
rmt_port, rmt_addr,
dif, hnum))) {
Expand Down

0 comments on commit f69b923

Please sign in to comment.