]> source.dussan.org Git - rspamd.git/commitdiff
Fix stupid error for FreeBSD build.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 3 Nov 2014 12:47:50 +0000 (12:47 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 3 Nov 2014 12:47:50 +0000 (12:47 +0000)
src/libutil/addr.c

index 4af1dd6753e0c4f300b9c23a4ba01c74be8c7cab..62ef6474dbe659a4220639ba75f1c6d9b4a8aae4 100644 (file)
@@ -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) {