diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 2002-03-26 19:12:57 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 2002-03-26 19:12:57 +0000 |
commit | 27acdfd63f6305a453113b9ab926271f446aee9d (patch) | |
tree | b27090f178dd0d283ac83b4a066080f468e812fa /sys/netiso | |
parent | 410d402f1b156d84b76644d151604fdea02eb25b (diff) |
m_freem(NULL) bad style, ok jason@
Diffstat (limited to 'sys/netiso')
-rw-r--r-- | sys/netiso/if_eon.c | 5 | ||||
-rw-r--r-- | sys/netiso/tp_inet.c | 3 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/netiso/if_eon.c b/sys/netiso/if_eon.c index 3b97c1f4fd9..7d1bcf79aad 100644 --- a/sys/netiso/if_eon.c +++ b/sys/netiso/if_eon.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_eon.c,v 1.14 2002/03/15 18:19:53 millert Exp $ */ +/* $OpenBSD: if_eon.c,v 1.15 2002/03/26 19:12:56 niklas Exp $ */ /* $NetBSD: if_eon.c,v 1.15 1996/05/09 22:29:37 scottr Exp $ */ /*- @@ -484,7 +484,8 @@ eoninput(struct mbuf *m, ...) } #endif eonifp->if_ierrors++; - m_freem(m); + if (m != 0) + m_freem(m); return; } } diff --git a/sys/netiso/tp_inet.c b/sys/netiso/tp_inet.c index 16b7e6cf434..73e9de88491 100644 --- a/sys/netiso/tp_inet.c +++ b/sys/netiso/tp_inet.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tp_inet.c,v 1.8 2002/03/15 18:19:53 millert Exp $ */ +/* $OpenBSD: tp_inet.c,v 1.9 2002/03/26 19:12:56 niklas Exp $ */ /* $NetBSD: tp_inet.c,v 1.11 1996/03/16 23:13:49 christos Exp $ */ /*- @@ -588,7 +588,6 @@ discard: tptrace(TPPTmisc, "tpip_input DISCARD m", m, 0, 0, 0); } #endif - m_freem(m); IncStat(ts_recv_drop); splx(s); } |