diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 2002-03-24 19:17:28 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 2002-03-24 19:17:28 +0000 |
commit | 56204f82efe22442ad7b435c52625678f89e1466 (patch) | |
tree | bd94aff52f1f8f33430af6a46a6931c3e90af303 /sys | |
parent | 382d896d922db44de7a327adde72e8e8c84a5239 (diff) |
deref of NULL in out of mbuf situation, ok jason@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if_vlan.c | 5 |
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); } |