Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 May 2019 17:18:09 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r348470 - stable/11/sys/netinet6
Message-ID:  <201905311718.x4VHI99r050765@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ae
Date: Fri May 31 17:18:09 2019
New Revision: 348470
URL: https://svnweb.freebsd.org/changeset/base/348470

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>
  Approved by:	re (gjb)

Modified:
  stable/11/sys/netinet6/in6_src.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/netinet6/in6_src.c
==============================================================================
--- stable/11/sys/netinet6/in6_src.c	Fri May 31 17:02:37 2019	(r348469)
+++ stable/11/sys/netinet6/in6_src.c	Fri May 31 17:18:09 2019	(r348470)
@@ -725,6 +725,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;
 	}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905311718.x4VHI99r050765>