summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorthib <thib@openbsd.org>2008-08-09 11:25:05 +0000
committerthib <thib@openbsd.org>2008-08-09 11:25:05 +0000
commitdb12bc822a40dfdb0c4a3b3cd1bce4e067be97fb (patch)
tree8dea28aa6815c6ef7879b160f41171833f7c53f1 /sys
parento nfs_vinvalbuf() is always called with the intrflag as 1, and then (diff)
downloadwireguard-openbsd-db12bc822a40dfdb0c4a3b3cd1bce4e067be97fb.tar.xz
wireguard-openbsd-db12bc822a40dfdb0c4a3b3cd1bce4e067be97fb.zip
turn an MFREE() into an m_free() and garbage collect an
unused mbuf pointer. OK claudio@
Diffstat (limited to 'sys')
-rw-r--r--sys/net/if_pppoe.c6
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);
}
}