summaryrefslogtreecommitdiff
path: root/sys/net/if_vlan.c
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>2002-03-24 19:17:28 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>2002-03-24 19:17:28 +0000
commit56204f82efe22442ad7b435c52625678f89e1466 (patch)
treebd94aff52f1f8f33430af6a46a6931c3e90af303 /sys/net/if_vlan.c
parent382d896d922db44de7a327adde72e8e8c84a5239 (diff)
deref of NULL in out of mbuf situation, ok jason@
Diffstat (limited to 'sys/net/if_vlan.c')
-rw-r--r--sys/net/if_vlan.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c
index 8a9c4ca4bd5..d1ba713b025 100644
--- a/sys/net/if_vlan.c
+++ b/sys/net/if_vlan.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_vlan.c,v 1.30 2002/02/13 20:38:29 jason Exp $ */
+/* $OpenBSD: if_vlan.c,v 1.31 2002/03/24 19:17:27 niklas Exp $ */
/*
* Copyright 1998 Massachusetts Institute of Technology
*
@@ -364,10 +364,11 @@ vlan_input(eh, m)
int i;
struct ifvlan *ifv;
u_int tag;
+ struct ifnet *ifp = m->m_pkthdr.rcvif;
if (m->m_len < EVL_ENCAPLEN &&
(m = m_pullup(m, EVL_ENCAPLEN)) == NULL) {
- m->m_pkthdr.rcvif->if_ierrors++;
+ ifp->if_ierrors++;
return (0);
}