summaryrefslogtreecommitdiff
path: root/sys/netinet/udp_usrreq.c
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2000-10-31 09:13:02 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2000-10-31 09:13:02 +0000
commit48cb400fb10564bb08e61735d88d4410bd160fb0 (patch)
tree97f463b7d73b057934012efe15e64857061a7582 /sys/netinet/udp_usrreq.c
parent9005f14a3b5ecefa1144d9afdb8ef375428a358b (diff)
Notes
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
-rw-r--r--sys/netinet/udp_usrreq.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
index f357905568ff..589fbef76d13 100644
--- a/sys/netinet/udp_usrreq.c
+++ b/sys/netinet/udp_usrreq.c
@@ -208,7 +208,8 @@ udp_input(m, off, proto)
* Save a copy of the IP header in case we want restore it
* for sending an ICMP error message in response.
*/
- save_ip = *ip;
+ if (!blackhole)
+ save_ip = *ip;
/*
* Checksum extended UDP header and data.