Author: ae
Date: Fri May 24 11:45:32 2019
New Revision: 348236
URL: https://svnweb.freebsd.org/changeset/base/348236

Log:
  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

Modified:
  head/sys/netinet6/in6_src.c

Modified: head/sys/netinet6/in6_src.c
==============================================================================
--- head/sys/netinet6/in6_src.c Fri May 24 11:06:24 2019        (r348235)
+++ head/sys/netinet6/in6_src.c Fri May 24 11:45:32 2019        (r348236)
@@ -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;
        }
 
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to