diff options
author | Niels Provos <provos@cvs.openbsd.org> | 1998-08-19 13:29:19 +0000 |
---|---|---|
committer | Niels Provos <provos@cvs.openbsd.org> | 1998-08-19 13:29:19 +0000 |
commit | e370520adfb0df5b66cc8ac3ff83512a32625580 (patch) | |
tree | 723eb16cb21125ad3666f86fe55e53578e69b439 /sys/net | |
parent | 0f7c1a422984a87f90499adff1d66261c7f87555 (diff) |
use correct upper bound
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/encap.c | 4 |
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); |