diff options
Diffstat (limited to 'src/libs6')
-rw-r--r-- | src/libs6/s6_accessrules_keycheck_ip6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs6/s6_accessrules_keycheck_ip6.c b/src/libs6/s6_accessrules_keycheck_ip6.c index 6df7e17..955598b 100644 --- a/src/libs6/s6_accessrules_keycheck_ip6.c +++ b/src/libs6/s6_accessrules_keycheck_ip6.c @@ -17,7 +17,7 @@ s6_accessrules_result_t s6_accessrules_keycheck_ip6 (void const *key, void const { size_t len ; s6_accessrules_result_t r ; - if (i) ip6[(128-i) >> 3] &= ~(1 << (i&7)) ; + if (i) ip6[(128-i) >> 3] &= ~(1 << ((i-1)&7)) ; len = 4 + ip6_fmt(fmt+4, ip6) ; fmt[len++] = '_' ; len += uint_fmt(fmt + len, 128 - i) ; |