diff options
author | 1996-05-09 14:33:32 +0000 | |
---|---|---|
committer | 1996-05-09 14:33:32 +0000 | |
commit | bd23f126f51a42e7a4d50e8514675552e4892fd3 (patch) | |
tree | c0420b20d6a626b0ac3090651869c9be71bfbf44 /sys | |
parent | from is; os9 entries (diff) | |
download | wireguard-openbsd-bd23f126f51a42e7a4d50e8514675552e4892fd3.tar.xz wireguard-openbsd-bd23f126f51a42e7a4d50e8514675552e4892fd3.zip |
revert icmp len fix, since i experience 'icmp len'
panics replying to udp.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet/ip_icmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_icmp.c b/sys/netinet/ip_icmp.c index acbe07ca094..82452068c09 100644 --- a/sys/netinet/ip_icmp.c +++ b/sys/netinet/ip_icmp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_icmp.c,v 1.4 1996/05/07 15:20:23 mickey Exp $ */ +/* $OpenBSD: ip_icmp.c,v 1.5 1996/05/09 14:33:32 mickey Exp $ */ /* $NetBSD: ip_icmp.c,v 1.19 1996/02/13 23:42:22 christos Exp $ */ /* @@ -120,7 +120,7 @@ icmp_error(n, type, code, dest, destifp) m = m_gethdr(M_DONTWAIT, MT_HEADER); if (m == NULL) goto freeit; - icmplen = oiplen + oip->ip_len; + icmplen = oiplen + min(8,oip->ip_len); m->m_len = icmplen + ICMP_MINLEN; MH_ALIGN(m, m->m_len); icp = mtod(m, struct icmp *); |