Skip to content

Commit 6781fde

Browse files
yoshfujiDavid S. Miller
authored andcommitted
[UDPv4]: Pass correct socket to ip_mc_sf_allow.
1 parent 1cc5f24 commit 6781fde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ipv4/udp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ static inline struct sock *udp_v4_mcast_next(struct sock *sk,
294294
ipv6_only_sock(s) ||
295295
(s->sk_bound_dev_if && s->sk_bound_dev_if != dif))
296296
continue;
297-
if (!ip_mc_sf_allow(sk, loc_addr, rmt_addr, dif))
297+
if (!ip_mc_sf_allow(s, loc_addr, rmt_addr, dif))
298298
continue;
299299
goto found;
300300
}

0 commit comments

Comments
 (0)