summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2014-03-19 09:23:58 +0000
committerglebius <glebius@FreeBSD.org>2014-03-19 09:23:58 +0000
commit73a339242daca126752a08f5390d85b17a8f0436 (patch)
tree93b6e16b3d666b40e253b334a66229c5a6a33179
parent9fe35c7245f21b37300ade221685cbd2b5a4019b (diff)
downloadFreeBSD-src-73a339242daca126752a08f5390d85b17a8f0436.zip
FreeBSD-src-73a339242daca126752a08f5390d85b17a8f0436.tar.gz
Merge r262747: remove extraneous ifa_ref()/ifa_free().
-rw-r--r--sys/netinet/ip_output.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c
index 2d8be1b..bee37a7 100644
--- a/sys/netinet/ip_output.c
+++ b/sys/netinet/ip_output.c
@@ -295,7 +295,6 @@ again:
goto bad;
}
ia = ifatoia(rte->rt_ifa);
- ifa_ref(&ia->ia_ifa);
ifp = rte->rt_ifp;
rte->rt_rmx.rmx_pksent++;
if (rte->rt_flags & RTF_GATEWAY)
@@ -532,11 +531,8 @@ sendit:
#endif
error = netisr_queue(NETISR_IP, m);
goto done;
- } else {
- if (ia != NULL)
- ifa_free(&ia->ia_ifa);
+ } else
goto again; /* Redo the routing table lookup. */
- }
}
/* See if local, if yes, send it to netisr with IP_FASTFWD_OURS. */
@@ -565,8 +561,6 @@ sendit:
m->m_flags |= M_SKIP_FIREWALL;
m->m_flags &= ~M_IP_NEXTHOP;
m_tag_delete(m, fwd_tag);
- if (ia != NULL)
- ifa_free(&ia->ia_ifa);
goto again;
}
@@ -677,8 +671,6 @@ passout:
done:
if (ro == &iproute)
RO_RTFREE(ro);
- if (ia != NULL)
- ifa_free(&ia->ia_ifa);
return (error);
bad:
m_freem(m);
OpenPOWER on IntegriCloud