From db12bc822a40dfdb0c4a3b3cd1bce4e067be97fb Mon Sep 17 00:00:00 2001 From: thib Date: Sat, 9 Aug 2008 11:25:05 +0000 Subject: [PATCH] turn an MFREE() into an m_free() and garbage collect an unused mbuf pointer. OK claudio@ --- sys/net/if_pppoe.c | 6 ++---- 1 file 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); } } -- 2.20.1