Restore IPV6_NEXTHOP option support that seem was partially broken
since r286195. Do not forget results of route lookup and initialize rt and ifp pointers. PR: 238098 Submitted by: Masse Nicolas <nicolas.masse at stormshield eu> MFC after: 1 week
This commit is contained in:
parent
71b73923c9
commit
aab5f5a3bd
@ -724,6 +724,10 @@ selectroute(struct sockaddr_in6 *dstsock, struct ip6_pktopts *opts,
|
||||
if (ron->ro_rt == NULL ||
|
||||
(ron->ro_rt->rt_flags & RTF_GATEWAY) != 0)
|
||||
error = EHOSTUNREACH;
|
||||
else {
|
||||
rt = ron->ro_rt;
|
||||
ifp = rt->rt_ifp;
|
||||
}
|
||||
goto done;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user