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_gre.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_gre.c')
-rw-r--r-- | sys/netinet/ip_gre.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/ip_gre.c b/sys/netinet/ip_gre.c index 38cedbc0e62..b80f99047ef 100644 --- a/sys/netinet/ip_gre.c +++ b/sys/netinet/ip_gre.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_gre.c,v 1.20 2003/04/22 02:52:28 itojun Exp $ */ +/* $OpenBSD: ip_gre.c,v 1.21 2003/05/03 01:43:07 itojun Exp $ */ /* $NetBSD: ip_gre.c,v 1.9 1999/10/25 19:18:11 drochner Exp $ */ /* @@ -214,6 +214,7 @@ gre_input2(m , hlen, proto) */ struct mbuf m0; + m0.m_flags = 0; m0.m_next = m; m0.m_len = 4; m0.m_data = (char *) ⁡ @@ -361,6 +362,7 @@ gre_mobile_input(struct mbuf *m, ...) struct mbuf m0; u_int af = AF_INET; + m0.m_flags = 0; m0.m_next = m; m0.m_len = 4; m0.m_data = (char *) ⁡ |