mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
Swap the order of a free and a use of an ifaddr structure.
This commit is contained in:
parent
540e8b7e31
commit
12e552d69f
1 changed files with 1 additions and 1 deletions
|
|
@ -429,10 +429,10 @@ route_output(m, so)
|
|||
register struct ifaddr *oifa = rt->rt_ifa;
|
||||
if (oifa != ifa) {
|
||||
if (oifa) {
|
||||
IFAFREE(oifa);
|
||||
if (oifa->ifa_rtrequest)
|
||||
oifa->ifa_rtrequest(RTM_DELETE, rt,
|
||||
&info);
|
||||
IFAFREE(oifa);
|
||||
}
|
||||
IFAREF(ifa);
|
||||
rt->rt_ifa = ifa;
|
||||
|
|
|
|||
Loading…
Reference in a new issue