From 372af0e0e48668a240f52800628f23207f4dec2f Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 8 Jan 2018 18:29:29 +0000 Subject: [PATCH] Fix typo in comparison function Signed-off-by: Michael Tremer --- src/loc/private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/loc/private.h b/src/loc/private.h index e7ed0f4..2788705 100644 --- a/src/loc/private.h +++ b/src/loc/private.h @@ -58,7 +58,7 @@ void loc_log(struct loc_ctx *ctx, const char *format, ...) __attribute__((format(printf, 6, 7))); static inline int in6_addr_cmp(const struct in6_addr* a1, const struct in6_addr* a2) { - return memcmp(&a1->s6_addr, &a1->s6_addr, sizeof(a1->s6_addr)); + return memcmp(&a1->s6_addr, &a2->s6_addr, sizeof(a1->s6_addr)); } static inline int in6_addr_get_bit(const struct in6_addr* address, unsigned int i) { -- 2.39.2