From 1a1f4f0db14f506e53754102d3a62fb7f6f83c7f Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 3 Nov 2014 12:47:50 +0000 Subject: [PATCH] Fix stupid error for FreeBSD build. --- src/libutil/addr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libutil/addr.c b/src/libutil/addr.c index 4af1dd675..62ef6474d 100644 --- a/src/libutil/addr.c +++ b/src/libutil/addr.c @@ -99,7 +99,7 @@ rspamd_parse_inet_address (rspamd_inet_addr_t *target, const char *src) rspamd_strlcpy (target->addr.su.sun_path, src, sizeof (target->addr.su.sun_path)); #ifdef FREEBSD - target->addr.su.sun_len = SUN_LEN (addr); + target->addr.su.sun_len = SUN_LEN (&target->addr.su); #endif } else if (inet_pton (AF_INET6, src, &target->addr.s6.sin6_addr) == 1) { -- 2.39.5