diff options
author | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2008-08-09 11:25:06 +0000 |
---|---|---|
committer | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2008-08-09 11:25:06 +0000 |
commit | d27fa2e052d1de8adf1ef506aee9dab86d9f1fae (patch) | |
tree | 50c4a13ab981a16d4f9b6ac879d9442ea2ed2a8a /sys/net/if_pppoe.c | |
parent | 438407ddf18815478fb586feb0444b01488e7c67 (diff) |
turn an MFREE() into an m_free() and garbage collect an
unused mbuf pointer.
OK claudio@
Diffstat (limited to 'sys/net/if_pppoe.c')
-rw-r--r-- | sys/net/if_pppoe.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/net/if_pppoe.c b/sys/net/if_pppoe.c index 4d720fc57dc..548c5546008 100644 --- a/sys/net/if_pppoe.c +++ b/sys/net/if_pppoe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_pppoe.c,v 1.22 2008/06/26 05:42:20 ray Exp $ */ +/* $OpenBSD: if_pppoe.c,v 1.23 2008/08/09 11:25:05 thib Exp $ */ /* $NetBSD: if_pppoe.c,v 1.51 2003/11/28 08:56:48 keihan Exp $ */ /* @@ -1029,9 +1029,7 @@ pppoe_get_mbuf(size_t len) if (len + sizeof(struct ether_header) > MHLEN) { MCLGET(m, M_DONTWAIT); if ((m->m_flags & M_EXT) == 0) { - struct mbuf *n; - - MFREE(m, n); + m_free(m); return (NULL); } } |