summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorNiels Provos <provos@cvs.openbsd.org>1998-08-19 13:29:19 +0000
committerNiels Provos <provos@cvs.openbsd.org>1998-08-19 13:29:19 +0000
commite370520adfb0df5b66cc8ac3ff83512a32625580 (patch)
tree723eb16cb21125ad3666f86fe55e53578e69b439 /sys/net
parent0f7c1a422984a87f90499adff1d66261c7f87555 (diff)
use correct upper bound
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/encap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/encap.c b/sys/net/encap.c
index 2673e5fe839..64648a1639c 100644
--- a/sys/net/encap.c
+++ b/sys/net/encap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: encap.c,v 1.23 1998/05/24 14:13:57 provos Exp $ */
+/* $OpenBSD: encap.c,v 1.24 1998/08/19 13:29:18 provos Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
@@ -1141,7 +1141,7 @@ encap_sendnotify(int subtype, struct tdb *tdbp, void *data)
return;
}
- m->m_len = min(MLEN, em.em_msglen);
+ m->m_len = min(MHLEN, em.em_msglen);
m_copyback(m, 0, em.em_msglen, (caddr_t) &em);
raw_input(m, &encap_proto, &encap_src, &encap_dst);