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/netinet/ip_ether.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/netinet/ip_ether.c')
-rw-r--r-- | sys/netinet/ip_ether.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/ip_ether.c b/sys/netinet/ip_ether.c index 713696fdd87..00371a5bc63 100644 --- a/sys/netinet/ip_ether.c +++ b/sys/netinet/ip_ether.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_ether.c,v 1.43 2003/03/06 11:54:06 markus Exp $ */ +/* $OpenBSD: ip_ether.c,v 1.44 2003/05/03 01:43:07 itojun Exp $ */ /* * The author of this code is Angelos D. Keromytis (kermit@adk.gr) * @@ -246,6 +246,7 @@ etherip_input(struct mbuf *m, ...) struct mbuf m0; u_int32_t af = sdst.sa.sa_family; + m0.m_flags = 0; m0.m_next = m; m0.m_len = 4; m0.m_data = (char *)⁡ |