aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-11-03 12:47:50 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-11-03 12:47:50 +0000
commit1a1f4f0db14f506e53754102d3a62fb7f6f83c7f (patch)
treeb4b6431b049fe894d645f93919fb3eca63df32fc
parent9209985e78f46a031e9591ec4fc262f36157bf15 (diff)
downloadrspamd-1a1f4f0db14f506e53754102d3a62fb7f6f83c7f.tar.gz
rspamd-1a1f4f0db14f506e53754102d3a62fb7f6f83c7f.zip
Fix stupid error for FreeBSD build.
-rw-r--r--src/libutil/addr.c2
1 files changed, 1 insertions, 1 deletions
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) {