mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-13 05:41:26 +01:00
Don't add back in the IP header length to ip_len; icmp_error will do it
for us. Obtained from: Stevens, vol. 2, p. 774
This commit is contained in:
parent
5d645648b1
commit
9bb8795d71
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=6479
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)udp_usrreq.c 8.4 (Berkeley) 1/21/94
|
||||
* $Id: udp_usrreq.c,v 1.4 1994/10/02 17:48:45 phk Exp $
|
||||
* $Id: udp_usrreq.c,v 1.5 1995/02/16 00:27:46 wollman Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -265,7 +265,6 @@ udp_input(m, iphlen)
|
||||
goto bad;
|
||||
}
|
||||
*ip = save_ip;
|
||||
ip->ip_len += iphlen;
|
||||
icmp_error(m, ICMP_UNREACH, ICMP_UNREACH_PORT, 0, 0);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user