svn commit: r348455 - stable/12/sys/netinet6
Andrey V. Elsukov
ae at FreeBSD.org
Fri May 31 11:21:31 UTC 2019
Author: ae
Date: Fri May 31 11:21:30 2019
New Revision: 348455
URL: https://svnweb.freebsd.org/changeset/base/348455
Log:
MFC r348236:
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>
Modified:
stable/12/sys/netinet6/in6_src.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/netinet6/in6_src.c
==============================================================================
--- stable/12/sys/netinet6/in6_src.c Fri May 31 04:29:29 2019 (r348454)
+++ stable/12/sys/netinet6/in6_src.c Fri May 31 11:21:30 2019 (r348455)
@@ -724,6 +724,10 @@ selectroute(struct sockaddr_in6 *dstsock, struct ip6_p
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;
}
More information about the svn-src-all
mailing list