Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 May 2018 07:14:58 +0000 (UTC)
From:      Matt Macy <mmacy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r334314 - head/sys/net
Message-ID:  <201805290714.w4T7EwCI044326@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mmacy
Date: Tue May 29 07:14:57 2018
New Revision: 334314
URL: https://svnweb.freebsd.org/changeset/base/334314

Log:
  rt_getifa_fib: don't use ifa but info->rti_ifa
  
  Reported by:	kp

Modified:
  head/sys/net/route.c

Modified: head/sys/net/route.c
==============================================================================
--- head/sys/net/route.c	Tue May 29 04:23:21 2018	(r334313)
+++ head/sys/net/route.c	Tue May 29 07:14:57 2018	(r334314)
@@ -1308,7 +1308,7 @@ rt_getifa_fib(struct rt_addrinfo *info, u_int fibnum)
 	}
 	if (needref && info->rti_ifa != NULL) {
 		if (info->rti_ifp == NULL)
-			info->rti_ifp = ifa->ifa_ifp;
+			info->rti_ifp = info->rti_ifa->ifa_ifp;
 		ifa_ref(info->rti_ifa);
 	} else
 		error = ENETUNREACH;



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