diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2003-05-03 01:43:08 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2003-05-03 01:43:08 +0000 |
commit | ee6dfba4cfdef1995bcc85ac8f44a5dd8a74d3b9 (patch) | |
tree | d05315dcfa23ed54328e1fff3357b6e1bcd80879 /sys/net/if_vlan.c | |
parent | 3895590e9d9536eb3bfbc13cc22ffd02c6f97234 (diff) |
just as a safety measure, set m_flags to 0 for mbufs allocated on stack.
dhartmei ok
Diffstat (limited to 'sys/net/if_vlan.c')
-rw-r--r-- | sys/net/if_vlan.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c index 4ff6f3b3613..22ee8975afe 100644 --- a/sys/net/if_vlan.c +++ b/sys/net/if_vlan.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vlan.c,v 1.35 2003/03/24 17:59:48 jason Exp $ */ +/* $OpenBSD: if_vlan.c,v 1.36 2003/05/03 01:43:07 itojun Exp $ */ /* * Copyright 1998 Massachusetts Institute of Technology * @@ -351,6 +351,8 @@ vlan_input(eh, m) * that yet. */ struct mbuf m0; + + m0.m_flags = 0; m0.m_next = m; m0.m_len = sizeof(struct ether_header); m0.m_data = (char *)eh; |