From 12e552d69fb5d174c2b7092ea72b5948b5f3e598 Mon Sep 17 00:00:00 2001 From: Jeffrey Hsu Date: Fri, 20 Dec 2002 11:21:07 +0000 Subject: [PATCH] Swap the order of a free and a use of an ifaddr structure. --- sys/net/rtsock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c index e7fad28cfa6..d8ec4895156 100644 --- a/sys/net/rtsock.c +++ b/sys/net/rtsock.c @@ -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;