mirror of
https://github.com/bol-van/zapret.git
synced 2025-05-24 22:32:58 +03:00
ip2net: fix comparision
This commit is contained in:
@@ -92,7 +92,7 @@ static int cmp6(const void * a, const void * b, void *arg)
|
||||
aa = ((uint64_t*)((struct in6_addr *)a)->s6_addr)[1];
|
||||
bb = ((uint64_t*)((struct in6_addr *)b)->s6_addr)[1];
|
||||
#endif
|
||||
return aa < bb ? -1 : aa < bb ? 1 : 0;
|
||||
return aa < bb ? -1 : aa > bb ? 1 : 0;
|
||||
}
|
||||
|
||||
#else
|
||||
|
Reference in New Issue
Block a user