diff options
author | hsu <hsu@FreeBSD.org> | 2002-12-20 11:21:07 +0000 |
---|---|---|
committer | hsu <hsu@FreeBSD.org> | 2002-12-20 11:21:07 +0000 |
commit | 54f0b4be8b286c7e821df4ef053a47f071abe3bf (patch) | |
tree | 099b87d717557c5066babff29472afc5f9a9ce7a /sys/net | |
parent | 3697a256483515b105a8cdfe0eb8157155e29bf8 (diff) | |
download | FreeBSD-src-54f0b4be8b286c7e821df4ef053a47f071abe3bf.zip FreeBSD-src-54f0b4be8b286c7e821df4ef053a47f071abe3bf.tar.gz |
Swap the order of a free and a use of an ifaddr structure.
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/rtsock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c index e7fad28..d8ec489 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; |