summaryrefslogtreecommitdiff
path: root/sys/netinet/udp_usrreq.c
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2000-09-01 12:33:03 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2000-09-01 12:33:03 +0000
commit04287599dbed87572996690f2b1fdaacf7e6dfa9 (patch)
treecdd98a887cfb2b793f1fe9a810f7dd543b0cbd98 /sys/netinet/udp_usrreq.c
parenta8a87cc61bfeb104ae045e40316a9f63fb8dad22 (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 09b5c96a1c2e..07b1166bba33 100644
--- a/sys/netinet/udp_usrreq.c
+++ b/sys/netinet/udp_usrreq.c
@@ -353,11 +353,12 @@ udp_input(m, off, proto)
udpstat.udps_noportbcast++;
goto bad;
}
- *ip = save_ip;
if (badport_bandlim(0) < 0)
goto bad;
if (blackhole)
goto bad;
+ *ip = save_ip;
+ ip->ip_len += iphlen;
icmp_error(m, ICMP_UNREACH, ICMP_UNREACH_PORT, 0, 0);
return;
}