Module Name:    src
Committed By:   maxv
Date:           Mon Feb 12 09:31:06 UTC 2018

Modified Files:
        src/sys/netinet: udp_usrreq.c

Log Message:
Don't rebase the pointers. 'm' is only allowed to become NULL (which
means 'processed').


To generate a diff of this commit:
cvs rdiff -u -r1.240 -r1.241 src/sys/netinet/udp_usrreq.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/netinet/udp_usrreq.c
diff -u src/sys/netinet/udp_usrreq.c:1.240 src/sys/netinet/udp_usrreq.c:1.241
--- src/sys/netinet/udp_usrreq.c:1.240	Sat Feb 10 08:17:00 2018
+++ src/sys/netinet/udp_usrreq.c	Mon Feb 12 09:31:06 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: udp_usrreq.c,v 1.240 2018/02/10 08:17:00 maxv Exp $	*/
+/*	$NetBSD: udp_usrreq.c,v 1.241 2018/02/12 09:31:06 maxv Exp $	*/
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -66,7 +66,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: udp_usrreq.c,v 1.240 2018/02/10 08:17:00 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: udp_usrreq.c,v 1.241 2018/02/12 09:31:06 maxv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -405,14 +405,6 @@ udp_input(struct mbuf *m, ...)
 		return;
 	}
 
-	ip = mtod(m, struct ip *);
-	IP6_EXTHDR_GET(uh, struct udphdr *, m, iphlen, sizeof(struct udphdr));
-	if (uh == NULL) {
-		UDP_STATINC(UDP_STAT_HDROPS);
-		return;
-	}
-	/* XXX Re-enforce alignment? */
-
 #ifdef INET6
 	if (IN_MULTICAST(ip->ip_dst.s_addr) || n == 0) {
 		struct sockaddr_in6 src6, dst6;

Reply via email to