diff options
| -rw-r--r-- | net/ipv6/ip6_output.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c index d5f7716662db..c5fc85286ef6 100644 --- a/net/ipv6/ip6_output.c +++ b/net/ipv6/ip6_output.c | |||
| @@ -1023,6 +1023,8 @@ struct dst_entry *ip6_dst_lookup_flow(struct sock *sk, struct flowi6 *fl6, | |||
| 1023 | return ERR_PTR(err); | 1023 | return ERR_PTR(err); |
| 1024 | if (final_dst) | 1024 | if (final_dst) |
| 1025 | fl6->daddr = *final_dst; | 1025 | fl6->daddr = *final_dst; |
| 1026 | if (!fl6->flowi6_oif) | ||
| 1027 | fl6->flowi6_oif = dst->dev->ifindex; | ||
| 1026 | 1028 | ||
| 1027 | return xfrm_lookup_route(sock_net(sk), dst, flowi6_to_flowi(fl6), sk, 0); | 1029 | return xfrm_lookup_route(sock_net(sk), dst, flowi6_to_flowi(fl6), sk, 0); |
| 1028 | } | 1030 | } |
