1 When IPv6 address mask did not end on an octed boundary, the the opposite
2 part of last byte of host address was taken into account when a match was
3 attempted. -- Lubomir Kundrak <lkundrak@redhat.com>
5 --- jwhois-4.0/src/lookup.c.ipv6-match 2007-12-04 17:09:57.000000000 +0100
6 +++ jwhois-4.0/src/lookup.c 2007-12-04 17:10:20.000000000 +0100
7 @@ -149,7 +149,7 @@ static int ipv6_address_is_in_network(co
11 - && (addr->s6_addr[i] & (0xFFu << (bits % 8))) != net->s6_addr[i])
12 + && (addr->s6_addr[i] & (0xFFu << 8-(bits % 8))) != net->s6_addr[i])