diff options
Diffstat (limited to 'net/ipv6/icmp.c')
-rw-r--r-- | net/ipv6/icmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/icmp.c b/net/ipv6/icmp.c index 5395afe55ca5..cbb5b9cf84ad 100644 --- a/net/ipv6/icmp.c +++ b/net/ipv6/icmp.c | |||
@@ -332,7 +332,7 @@ void icmpv6_send(struct sk_buff *skb, int type, int code, __u32 info, | |||
332 | */ | 332 | */ |
333 | addr_type = ipv6_addr_type(&hdr->daddr); | 333 | addr_type = ipv6_addr_type(&hdr->daddr); |
334 | 334 | ||
335 | if (ipv6_chk_addr(&hdr->daddr, skb->dev, 0)) | 335 | if (ipv6_chk_addr(&init_net, &hdr->daddr, skb->dev, 0)) |
336 | saddr = &hdr->daddr; | 336 | saddr = &hdr->daddr; |
337 | 337 | ||
338 | /* | 338 | /* |