svn commit: r243028 - head/sys/netinet6

Andrey V. Elsukov ae at FreeBSD.org
Wed Nov 14 17:14:04 UTC 2012


Author: ae
Date: Wed Nov 14 17:14:03 2012
New Revision: 243028
URL: http://svnweb.freebsd.org/changeset/base/243028

Log:
  zoneid has unsigned type.
  
  MFC after:	1 week

Modified:
  head/sys/netinet6/scope6.c

Modified: head/sys/netinet6/scope6.c
==============================================================================
--- head/sys/netinet6/scope6.c	Wed Nov 14 14:08:24 2012	(r243027)
+++ head/sys/netinet6/scope6.c	Wed Nov 14 17:14:03 2012	(r243028)
@@ -388,7 +388,7 @@ sa6_recoverscope(struct sockaddr_in6 *si
 		zoneid = ntohs(sin6->sin6_addr.s6_addr16[1]);
 		if (zoneid) {
 			/* sanity check */
-			if (zoneid < 0 || V_if_index < zoneid)
+			if (V_if_index < zoneid)
 				return (ENXIO);
 			if (!ifnet_byindex(zoneid))
 				return (ENXIO);


More information about the svn-src-all mailing list