From a371ca6ea2ea72d4465bf29ab67f6e8dbaa246e5 Mon Sep 17 00:00:00 2001 From: bol-van Date: Wed, 16 Oct 2024 14:25:16 +0300 Subject: [PATCH] nfqws: minor regression --- nfq/helpers.c | 2 +- nfq/hostlist.c | 2 +- nfq/ipset.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nfq/helpers.c b/nfq/helpers.c index 9d7bea9..dc0c840 100644 --- a/nfq/helpers.c +++ b/nfq/helpers.c @@ -422,7 +422,7 @@ __attribute__((optimize ("no-strict-aliasing"))) void ip6_and(const struct in6_addr * restrict a, const struct in6_addr * restrict b, struct in6_addr * restrict result) { // int128 requires 16-bit alignment. in struct sockaddr_in6.sin6_addr is 8-byte aligned. - // it causes segfault on x64 arch with lastest compiler. it can cause misalign slowdown on other archs + // it causes segfault on x64 arch with latest compiler. it can cause misalign slowdown on other archs // use 64-bit AND ((uint64_t*)result->s6_addr)[0] = ((uint64_t*)a->s6_addr)[0] & ((uint64_t*)b->s6_addr)[0]; ((uint64_t*)result->s6_addr)[1] = ((uint64_t*)a->s6_addr)[1] & ((uint64_t*)b->s6_addr)[1]; diff --git a/nfq/hostlist.c b/nfq/hostlist.c index e6d9eee..4f80c72 100644 --- a/nfq/hostlist.c +++ b/nfq/hostlist.c @@ -55,7 +55,7 @@ bool AppendHostList(strpool **hostlist, const char *filename) if (r==Z_OK) { DLOG_CONDUP("zlib compression detected. uncompressed size : %zu\n", zsize); - + p = zbuf; e = zbuf + zsize; while(p