Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Nov 2012 17:14:03 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r243028 - head/sys/netinet6
Message-ID:  <201211141714.qAEHE46n015022@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211141714.qAEHE46n015022>