diff --git a/net/ipv4/route.c b/net/ipv4/route.c index 1a362f375e67..c850647711d7 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c @@ -2306,7 +2306,7 @@ static int rt_fill_info(struct net *net, __be32 dst, __be32 src, } } else #endif - if (nla_put_u32(skb, RTA_IIF, rt->rt_iif)) + if (nla_put_u32(skb, RTA_IIF, skb->dev->ifindex)) goto nla_put_failure; }