diff options
Diffstat (limited to 'src/common/address.c')
-rw-r--r-- | src/common/address.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/address.c b/src/common/address.c index fef1f80fea..3328f41f1b 100644 --- a/src/common/address.c +++ b/src/common/address.c @@ -700,8 +700,8 @@ tor_addr_compare_masked(const tor_addr_t *addr1, const tor_addr_t *addr2, return (a1 < a2) ? -1 : (a1 == a2) ? 0 : 1; } case AF_INET6: { - uint8_t *a1 = addr1->addr.in6_addr.s6_addr; - uint8_t *a2 = addr2->addr.in6_addr.s6_addr; + const uint8_t *a1 = addr1->addr.in6_addr.s6_addr; + const uint8_t *a2 = addr2->addr.in6_addr.s6_addr; const int bytes = mbits >> 3; const int leftover_bits = mbits & 7; if (bytes && (r = memcmp(a1, a2, bytes))) { |