summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_ah.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/ip_ah.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/ip_ah.c')
-rw-r--r--sys/netinet/ip_ah.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/ip_ah.c b/sys/netinet/ip_ah.c
index 09df206fc98..780071a5554 100644
--- a/sys/netinet/ip_ah.c
+++ b/sys/netinet/ip_ah.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_ah.c,v 1.74 2003/04/02 20:09:26 millert Exp $ */
+/* $OpenBSD: ip_ah.c,v 1.75 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
@@ -946,6 +946,7 @@ ah_output(struct mbuf *m, struct tdb *tdb, struct mbuf **mp, int skip,
hdr.spi = tdb->tdb_spi;
hdr.flags |= M_AUTH | M_AUTH_AH;
+ m1.m_flags = 0;
m1.m_next = m;
m1.m_len = ENC_HDRLEN;
m1.m_data = (char *) &hdr;