diff options
| author | 2000-04-09 17:43:02 +0000 | |
|---|---|---|
| committer | 2000-04-09 17:43:02 +0000 | |
| commit | 1a56b5e70c576c0dbc0db69cf62bc570bbd9a28a (patch) | |
| tree | 1a01f2e11dccacbe0fc50d4b7b62f571cac09575 /sys/netinet/udp_usrreq.c | |
| parent | Link /usr/tmac/mdoc/doc to /usr/tmac/tmac.doc and remove references (diff) | |
| download | wireguard-openbsd-1a56b5e70c576c0dbc0db69cf62bc570bbd9a28a.tar.xz wireguard-openbsd-1a56b5e70c576c0dbc0db69cf62bc570bbd9a28a.zip | |
Pass ip_off and ip_len in the correct byte order to icmp_error(); this
should fix the crash problems with isic, reported last week.
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
| -rw-r--r-- | sys/netinet/udp_usrreq.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index 5114a17bb3a..d82d9134635 100644 --- a/sys/netinet/udp_usrreq.c +++ b/sys/netinet/udp_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: udp_usrreq.c,v 1.39 2000/02/18 05:21:01 itojun Exp $ */ +/* $OpenBSD: udp_usrreq.c,v 1.40 2000/04/09 17:43:02 angelos Exp $ */ /* $NetBSD: udp_usrreq.c,v 1.28 1996/03/16 23:54:03 christos Exp $ */ /* @@ -521,9 +521,7 @@ udp_input(m, va_alist) #endif /* INET6 */ { *ip = save_ip; - HTONS(ip->ip_len); HTONS(ip->ip_id); - HTONS(ip->ip_off); uh->uh_sum = savesum; icmp_error(m, ICMP_UNREACH, ICMP_UNREACH_PORT, 0, 0); |
