mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
MFC r197364
A wrong variable is used when setting up the interface address route, which broke source address selection in some code paths. Submitted by: noted by bz Reviewed by: hrs Approved by: re (kib)
This commit is contained in:
parent
1a7268649b
commit
8cb7f8f861
1 changed files with 2 additions and 2 deletions
|
|
@ -1432,9 +1432,9 @@ ifa_add_loopback_route(struct ifaddr *ifa, struct sockaddr *ia)
|
|||
if (error == 0 && rt != NULL) {
|
||||
RT_LOCK(rt);
|
||||
((struct sockaddr_dl *)rt->rt_gateway)->sdl_type =
|
||||
rt->rt_ifp->if_type;
|
||||
ifa->ifa_ifp->if_type;
|
||||
((struct sockaddr_dl *)rt->rt_gateway)->sdl_index =
|
||||
rt->rt_ifp->if_index;
|
||||
ifa->ifa_ifp->if_index;
|
||||
RT_REMREF(rt);
|
||||
RT_UNLOCK(rt);
|
||||
} else if (error != 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue