diff options
Diffstat (limited to 'net/ipv6/xfrm6_policy.c')
-rw-r--r-- | net/ipv6/xfrm6_policy.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/ipv6/xfrm6_policy.c b/net/ipv6/xfrm6_policy.c index 91d934c22a2a..f337a908a76a 100644 --- a/net/ipv6/xfrm6_policy.c +++ b/net/ipv6/xfrm6_policy.c | |||
@@ -61,9 +61,7 @@ static int xfrm6_get_saddr(struct net *net, | |||
61 | return -EHOSTUNREACH; | 61 | return -EHOSTUNREACH; |
62 | 62 | ||
63 | dev = ip6_dst_idev(dst)->dev; | 63 | dev = ip6_dst_idev(dst)->dev; |
64 | ipv6_dev_get_saddr(dev_net(dev), dev, | 64 | ipv6_dev_get_saddr(dev_net(dev), dev, &daddr->in6, 0, &saddr->in6); |
65 | (struct in6_addr *)&daddr->a6, 0, | ||
66 | (struct in6_addr *)&saddr->a6); | ||
67 | dst_release(dst); | 65 | dst_release(dst); |
68 | return 0; | 66 | return 0; |
69 | } | 67 | } |