zoneid has unsigned type.

MFC after:	1 week
This commit is contained in:
ae 2012-11-14 17:14:03 +00:00
parent bba3ac5a32
commit 42ab5bd8d7

View File

@ -388,7 +388,7 @@ sa6_recoverscope(struct sockaddr_in6 *sin6)
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);