summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2024-10-01 23:52:43 +0000
committerLaurent Bercot <ska@appnovation.com>2024-10-01 23:52:43 +0000
commitebc09923b2fbf93aef0de5689b9f7048d8fd720f (patch)
tree6be0f954c5ee4d5526e3bdd2282ac0f514875a28 /src
parent339e31b89a3e0fb4ed2b8414eb5641d1ac7f986e (diff)
downloads6-ebc09923b2fbf93aef0de5689b9f7048d8fd720f.tar.xz
Tentative fix for keycheck_ip6
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src')
-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 f5bcc5a..3a13c68 100644
--- a/src/libs6/s6_accessrules_keycheck_ip6.c
+++ b/src/libs6/s6_accessrules_keycheck_ip6.c
@@ -18,7 +18,7 @@ s6_accessrules_result_t s6_accessrules_keycheck_ip6 (void const *key, void const
{
size_t len ;
s6_accessrules_result_t r ;
- if (i) bitarray_clear(ip6, 128 - i) ;
+ if (i) ip6[(128-i) >> 3] &= ~(1 << (i&7)) ;
len = 4 + ip6_fmt(fmt+4, ip6) ;
fmt[len++] = '_' ;
len += uint_fmt(fmt + len, 128 - i) ;