diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2024-10-01 23:52:43 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2024-10-01 23:52:43 +0000 |
commit | ebc09923b2fbf93aef0de5689b9f7048d8fd720f (patch) | |
tree | 6be0f954c5ee4d5526e3bdd2282ac0f514875a28 | |
parent | 339e31b89a3e0fb4ed2b8414eb5641d1ac7f986e (diff) | |
download | s6-ebc09923b2fbf93aef0de5689b9f7048d8fd720f.tar.xz |
Tentative fix for keycheck_ip6
Signed-off-by: Laurent Bercot <ska@appnovation.com>
-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 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) ; |