Swap the order of a free and a use of an ifaddr structure.

This commit is contained in:
Jeffrey Hsu 2002-12-20 11:21:07 +00:00
parent 540e8b7e31
commit 12e552d69f

View File

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