summaryrefslogtreecommitdiff
path: root/sys/net/if_vlan.c
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2001-03-26 23:07:39 +0000
committerJason Wright <jason@cvs.openbsd.org>2001-03-26 23:07:39 +0000
commit77f83bdd4593c10acc43f81dc1de19ed94041718 (patch)
treea90c2bf734a170fc0e36b2677965be782f7f669c /sys/net/if_vlan.c
parent60ea328912452bb904fc34be01f64367de8fe8b3 (diff)
Fix bug I introduced... if m_pullup fails, don't try to free the result.
Diffstat (limited to 'sys/net/if_vlan.c')
-rw-r--r--sys/net/if_vlan.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c
index 6cff8ead00d..ffd63436775 100644
--- a/sys/net/if_vlan.c
+++ b/sys/net/if_vlan.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_vlan.c,v 1.13 2001/03/26 19:00:58 jason Exp $ */
+/* $OpenBSD: if_vlan.c,v 1.14 2001/03/26 23:07:38 jason Exp $ */
/*
* Copyright 1998 Massachusetts Institute of Technology
*
@@ -345,10 +345,8 @@ vlan_input(eh, m)
u_int tag;
if (m->m_len < EVL_ENCAPLEN &&
- (m = m_pullup(m, EVL_ENCAPLEN)) == NULL) {
- m_freem(m);
+ (m = m_pullup(m, EVL_ENCAPLEN)) == NULL)
return (-1);
- }
tag = EVL_VLANOFTAG(ntohs(*mtod(m, u_int16_t *)));