svn commit: r331776 - head/sys/netinet6

Brooks Davis brooks at FreeBSD.org
Fri Mar 30 18:26:30 UTC 2018


Author: brooks
Date: Fri Mar 30 18:26:29 2018
New Revision: 331776
URL: https://svnweb.freebsd.org/changeset/base/331776

Log:
  Remove a comment that suggests checking that a non-pointer is non-NULL.
  
  Reviewed by:	melifaro, markj, hrs, ume
  Sponsored by:	DARPA, AFRL
  Differential Revision:	https://reviews.freebsd.org/D14904

Modified:
  head/sys/netinet6/in6.c

Modified: head/sys/netinet6/in6.c
==============================================================================
--- head/sys/netinet6/in6.c	Fri Mar 30 18:26:26 2018	(r331775)
+++ head/sys/netinet6/in6.c	Fri Mar 30 18:26:29 2018	(r331776)
@@ -476,10 +476,6 @@ in6_control(struct socket *so, u_long cmd, caddr_t dat
 			error = EINVAL;
 			goto out;
 		}
-		/*
-		 * XXX: should we check if ifa_dstaddr is NULL and return
-		 * an error?
-		 */
 		ifr->ifr_dstaddr = ia->ia_dstaddr;
 		if ((error = sa6_recoverscope(&ifr->ifr_dstaddr)) != 0)
 			goto out;


More information about the svn-src-head mailing list