diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-10-29 15:39:53 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-10-29 15:39:53 +0000 |
commit | ebb8d1787fe6fdf0afb9cc74be10714485d869d1 (patch) | |
tree | a7fb8b1304c0b4621e91c64ccd87b91879c439c7 | |
parent | 505e9556c01fe56a73e5582d33cc492c4a1815d1 (diff) | |
download | rspamd-ebb8d1787fe6fdf0afb9cc74be10714485d869d1.tar.gz rspamd-ebb8d1787fe6fdf0afb9cc74be10714485d869d1.zip |
Set length properly.
-rw-r--r-- | src/libutil/addr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libutil/addr.c b/src/libutil/addr.c index 1257fb98f..4af1dd675 100644 --- a/src/libutil/addr.c +++ b/src/libutil/addr.c @@ -337,6 +337,7 @@ rspamd_parse_host_port_priority_strv (gchar **tokens, memcpy (&cur_addr->addr, cur->ai_addr, MIN (sizeof (cur_addr->addr), cur->ai_addrlen)); cur_addr->af = cur->ai_family; + cur_addr->slen = cur->ai_addrlen; cur = cur->ai_next; addr_cnt ++; } |