mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
zoneid has unsigned type.
MFC after: 1 week
This commit is contained in:
parent
22bec20ba9
commit
f062401329
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue