summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_output.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netinet/ip_output.c')
-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