diff options
-rw-r--r-- | src/libutil/addr.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libutil/addr.c b/src/libutil/addr.c index f6aed8bf4..138dc1318 100644 --- a/src/libutil/addr.c +++ b/src/libutil/addr.c @@ -339,6 +339,12 @@ rspamd_parse_unix_path (rspamd_inet_addr_t **target, if (tokens[0] == NULL) { return FALSE; } + + rspamd_strlcpy (addr->u.un->addr.sun_path, tokens[0], + sizeof (addr->u.un->addr.sun_path)); +#if defined(FREEBSD) || defined(__APPLE__) + addr->u.un->addr.sun_len = SUN_LEN (&addr->u.un->addr); +#endif } else { rspamd_strlcpy (addr->u.un->addr.sun_path, src, |