diff options
Diffstat (limited to 'src/libutil/addr.c')
-rw-r--r-- | src/libutil/addr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/addr.c b/src/libutil/addr.c index 7d0d5fef9..039474378 100644 --- a/src/libutil/addr.c +++ b/src/libutil/addr.c @@ -845,7 +845,7 @@ rspamd_inet_address_recvfrom (gint fd, void *buf, gsize len, gint fl, memcpy (&addr->u.un->addr, &su.su, sizeof (struct sockaddr_un)); } else { - memcpy (&addr->u.in.addr, &su, MIN (len, sizeof (addr->u.in.addr))); + memcpy (&addr->u.in.addr, &su.sa, MIN (slen, sizeof (addr->u.in.addr))); } *target = addr; |