summaryrefslogtreecommitdiff
path: root/sys/net/if_ethersubr.c
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1997-01-26 21:43:37 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1997-01-26 21:43:37 +0000
commit11eb8453c14c2ecec89a1e064cc672ddf38933f5 (patch)
tree5b617d688181a937a5421efeea95c6df162a54b0 /sys/net/if_ethersubr.c
parent16b85bcb4b3ead1ad348565c948d942570f67be7 (diff)
Don't examine an mbuf after it has been released; from Andreas Gunnarsson
Diffstat (limited to 'sys/net/if_ethersubr.c')
-rw-r--r--sys/net/if_ethersubr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c
index ad10982fddb..00b249418fd 100644
--- a/sys/net/if_ethersubr.c
+++ b/sys/net/if_ethersubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ethersubr.c,v 1.16 1997/01/02 20:45:49 deraadt Exp $ */
+/* $OpenBSD: if_ethersubr.c,v 1.17 1997/01/26 21:43:36 tholo Exp $ */
/* $NetBSD: if_ethersubr.c,v 1.19 1996/05/07 02:40:30 thorpej Exp $ */
/*
@@ -360,11 +360,11 @@ ether_output(ifp, m0, dst, rt0)
}
ifp->if_obytes += m->m_pkthdr.len;
IF_ENQUEUE(&ifp->if_snd, m);
+ if (m->m_flags & M_MCAST)
+ ifp->if_omcasts++;
if ((ifp->if_flags & IFF_OACTIVE) == 0)
(*ifp->if_start)(ifp);
splx(s);
- if (m->m_flags & M_MCAST)
- ifp->if_omcasts++;
return (error);
bad: