aboutsummaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorMatt Macy <mmacy@FreeBSD.org>2018-05-29 07:14:57 +0000
committerMatt Macy <mmacy@FreeBSD.org>2018-05-29 07:14:57 +0000
commit134804c89ac4d375ec738833aee1f9214022b07a (patch)
tree3e4013e34c51031086e0815b4cc910c1290e28d4 /sys/net
parenta191ed2d9f1059fb651157fcc1ad12994e51f66d (diff)
downloadsrc-134804c89ac4d375ec738833aee1f9214022b07a.tar.gz
src-134804c89ac4d375ec738833aee1f9214022b07a.zip
rt_getifa_fib: don't use ifa but info->rti_ifa
Reported by: kp
Notes
Notes: svn path=/head/; revision=334314
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/route.c b/sys/net/route.c
index 25030d12babd..06eaba334f3a 100644
--- a/sys/net/route.c
+++ b/sys/net/route.c
@@ -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;