Fix case where fastroute or "to interface" is used with incorrect FIB.

PR:		183065
Submitted by:	p-freebsd-bugs@ziemba.us
Approved by:	glebius
MFC after:	1 week
This commit is contained in:
Cy Schubert 2014-06-19 05:45:17 +00:00
parent f5e153b026
commit abb2c5c3a1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=267634

View File

@ -787,7 +787,7 @@ ipf_fastroute(m0, mpp, fin, fdp)
dst->sin_addr = fdp->fd_ip;
dst->sin_len = sizeof(*dst);
in_rtalloc(ro, 0);
in_rtalloc(ro, M_GETFIB(m0));
if ((ifp == NULL) && (ro->ro_rt != NULL))
ifp = ro->ro_rt->rt_ifp;