summaryrefslogtreecommitdiff
path: root/sys/netinet/ipsec_input.c
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2003-05-03 01:43:08 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2003-05-03 01:43:08 +0000
commitee6dfba4cfdef1995bcc85ac8f44a5dd8a74d3b9 (patch)
treed05315dcfa23ed54328e1fff3357b6e1bcd80879 /sys/netinet/ipsec_input.c
parent3895590e9d9536eb3bfbc13cc22ffd02c6f97234 (diff)
just as a safety measure, set m_flags to 0 for mbufs allocated on stack.
dhartmei ok
Diffstat (limited to 'sys/netinet/ipsec_input.c')
-rw-r--r--sys/netinet/ipsec_input.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/ipsec_input.c b/sys/netinet/ipsec_input.c
index 53b547d857b..644548846ae 100644
--- a/sys/netinet/ipsec_input.c
+++ b/sys/netinet/ipsec_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipsec_input.c,v 1.63 2003/02/20 18:35:43 deraadt Exp $ */
+/* $OpenBSD: ipsec_input.c,v 1.64 2003/05/03 01:43:07 itojun Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
* Angelos D. Keromytis (kermit@csd.uch.gr) and
@@ -538,6 +538,7 @@ ipsec_common_input_cb(struct mbuf *m, struct tdb *tdbp, int skip, int protoff,
hdr.spi = tdbp->tdb_spi;
hdr.flags = m->m_flags & (M_AUTH|M_CONF|M_AUTH_AH);
+ m1.m_flags = 0;
m1.m_next = m;
m1.m_len = ENC_HDRLEN;
m1.m_data = (char *) &hdr;