diff options
author | 1998-08-19 13:29:18 +0000 | |
---|---|---|
committer | 1998-08-19 13:29:18 +0000 | |
commit | 5ae8fe111311fa180d26d0638a8d05139688d2cc (patch) | |
tree | 9bda8a075fbdd08f910fb6fa7e44208a5b84bde3 | |
parent | print spaces correctly when input is on the command line (diff) | |
download | wireguard-openbsd-5ae8fe111311fa180d26d0638a8d05139688d2cc.tar.xz wireguard-openbsd-5ae8fe111311fa180d26d0638a8d05139688d2cc.zip |
use correct upper bound
-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); |