MFS: Avoid dropping fragments in the absence of an interface address.

Noticed by:	fenner
Submitted by:	iedowse
Not committed to current by:	iedowse ;-)
This commit is contained in:
dcs 2001-08-03 17:36:06 +00:00
parent 90376d10b0
commit 908ed6c780

View File

@ -961,10 +961,12 @@ sendorfree:
/* clean ipsec history once it goes out of the node */
ipsec_delaux(m);
#endif
if (error == 0 && ia) {
if (error == 0) {
/* Record statistics for this interface address. */
ia->ia_ifa.if_opackets++;
ia->ia_ifa.if_obytes += m->m_pkthdr.len;
if (ia != NULL) {
ia->ia_ifa.if_opackets++;
ia->ia_ifa.if_obytes += m->m_pkthdr.len;
}
error = (*ifp->if_output)(ifp, m,
(struct sockaddr *)dst, ro->ro_rt);