summaryrefslogtreecommitdiff
path: root/sys/netinet/udp_usrreq.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-09-23 07:20:36 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-09-23 07:20:36 +0000
commit8339c12be89a637788b14ea3a1d4dd31619c56e6 (patch)
tree0537bf4b9950f8627ce6c6e4569485bb21575960 /sys/netinet/udp_usrreq.c
parentce5efa4c99adb41d3b8e4e0966f38cca93401ae9 (diff)
fix same-interface-out-as-in and packet gets corrupted bug noted by
james@oaktree.co.uk by re-working icmp embedded-packet code so that ip_forward() m_copy()-aliased packet can be forwarded to ip_output and icmp_error() safely, because no packet tweaking is needed before calling icmp_error()
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
-rw-r--r--sys/netinet/udp_usrreq.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
index 498ac0e7cdb..d57e3faf7b3 100644
--- a/sys/netinet/udp_usrreq.c
+++ b/sys/netinet/udp_usrreq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: udp_usrreq.c,v 1.26 1999/06/06 23:34:20 deraadt Exp $ */
+/* $OpenBSD: udp_usrreq.c,v 1.27 1999/09/23 07:20:35 deraadt Exp $ */
/* $NetBSD: udp_usrreq.c,v 1.28 1996/03/16 23:54:03 christos Exp $ */
/*
@@ -485,9 +485,7 @@ udp_input(m, va_alist)
goto bad;
}
*ip = save_ip;
- HTONS(ip->ip_len);
HTONS(ip->ip_id);
- HTONS(ip->ip_off);
uh->uh_sum = savesum;
#ifdef INET6
if (ipv6)