summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2011-01-28 14:58:25 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2011-01-28 14:58:25 +0000
commite17c4b38ffe75181b84737eb34b438b8f21908c0 (patch)
tree99d008587c9a440dcf3ff43a9dfb3cb11b7279fa /sys/net
parent4229e5a04a479691c041e9b9f03bbba19207ddd0 (diff)
Replace another m_free() with m_freem() to plug an mbuf leak in mpe_input().
ok gollo@
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_mpe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_mpe.c b/sys/net/if_mpe.c
index f434e4af6fa..2e7a4192ac6 100644
--- a/sys/net/if_mpe.c
+++ b/sys/net/if_mpe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_mpe.c,v 1.24 2011/01/21 17:42:57 mikeb Exp $ */
+/* $OpenBSD: if_mpe.c,v 1.25 2011/01/28 14:58:24 reyk Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@spootnik.org>
@@ -384,7 +384,7 @@ mpe_input(struct mbuf *m, struct ifnet *ifp, struct sockaddr_mpls *smpls,
}
if (in_cksum(m, hlen) != 0) {
- m_free(m);
+ m_freem(m);
return;
}