diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/udp.c | 4 | ||||
-rw-r--r-- | net/ipv6/udp.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index 7af756d0f931..24272c4cfbca 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c | |||
@@ -471,8 +471,8 @@ static struct sock *__udp4_lib_lookup(struct net *net, __be32 saddr, | |||
471 | if (hslot->count < hslot2->count) | 471 | if (hslot->count < hslot2->count) |
472 | goto begin; | 472 | goto begin; |
473 | 473 | ||
474 | result = udp4_lib_lookup2(net, INADDR_ANY, sport, | 474 | result = udp4_lib_lookup2(net, saddr, sport, |
475 | daddr, hnum, dif, | 475 | INADDR_ANY, hnum, dif, |
476 | hslot2, slot2); | 476 | hslot2, slot2); |
477 | } | 477 | } |
478 | rcu_read_unlock(); | 478 | rcu_read_unlock(); |
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c index 3c0c9c755c92..787e480cc096 100644 --- a/net/ipv6/udp.c +++ b/net/ipv6/udp.c | |||
@@ -258,8 +258,8 @@ static struct sock *__udp6_lib_lookup(struct net *net, | |||
258 | if (hslot->count < hslot2->count) | 258 | if (hslot->count < hslot2->count) |
259 | goto begin; | 259 | goto begin; |
260 | 260 | ||
261 | result = udp6_lib_lookup2(net, &in6addr_any, sport, | 261 | result = udp6_lib_lookup2(net, saddr, sport, |
262 | daddr, hnum, dif, | 262 | &in6addr_any, hnum, dif, |
263 | hslot2, slot2); | 263 | hslot2, slot2); |
264 | } | 264 | } |
265 | rcu_read_unlock(); | 265 | rcu_read_unlock(); |