aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/addr.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-26 14:13:31 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-26 14:13:31 +0000
commitb5f65acbd6a62aa60431e3b8b19aeb6d3b56821a (patch)
treebada162b980e4bac93bef17373bd923cd2cc399c /src/libutil/addr.c
parentf49870c17049808938ffab9391bcd13bf0a6d098 (diff)
downloadrspamd-b5f65acbd6a62aa60431e3b8b19aeb6d3b56821a.tar.gz
rspamd-b5f65acbd6a62aa60431e3b8b19aeb6d3b56821a.zip
Fix socket length calculations for UDP sockets.
Diffstat (limited to 'src/libutil/addr.c')
-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 38e5ac4fa..3e2ec9458 100644
--- a/src/libutil/addr.c
+++ b/src/libutil/addr.c
@@ -558,7 +558,7 @@ rspamd_inet_address_recvfrom (gint fd, void *buf, gsize len, gint fl,
if (target) {
addr = rspamd_inet_addr_create (su.sa.sa_family);
- addr->slen = len;
+ addr->slen = slen;
if (addr->af == AF_UNIX) {
addr->u.un = g_slice_alloc (sizeof (*addr->u.un));