rt_getifa_fib: don't use ifa but info->rti_ifa

Reported by:	kp
This commit is contained in:
Matt Macy 2018-05-29 07:14:57 +00:00
parent a191ed2d9f
commit 134804c89a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334314

View File

@ -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;