summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2024-10-02 00:19:36 +0000
committerLaurent Bercot <ska@appnovation.com>2024-10-02 00:19:36 +0000
commitd6e9525c3802c3cffef941b819abe3f98328b28f (patch)
tree5fd0961e6d002d0d07ea9602da7d82e970162517
parentff6b4344d5adfadc8873df2ec859262225d5b020 (diff)
downloads6-d6e9525c3802c3cffef941b819abe3f98328b28f.tar.xz
Actual fix for keycheck_ip6
Signed-off-by: Laurent Bercot <ska@appnovation.com>
-rw-r--r--src/libs6/s6_accessrules_keycheck_ip6.c2
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) ;