diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-13 15:17:45 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-13 15:17:45 +0100 |
commit | 9370ea45e1a9b745cec61cd0e90389ee37f4853a (patch) | |
tree | d70d4da3d8bfa5e3dd5d0ac99fa6a2ad63ef5c0c /src/libserver/protocol.c | |
parent | 1ccfaf0523b69bda6f34e33faaf2dc9f321abfa9 (diff) | |
download | rspamd-9370ea45e1a9b745cec61cd0e90389ee37f4853a.tar.gz rspamd-9370ea45e1a9b745cec61cd0e90389ee37f4853a.zip |
Fix parsing of fixed length IP addresses.
Diffstat (limited to 'src/libserver/protocol.c')
-rw-r--r-- | src/libserver/protocol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/protocol.c b/src/libserver/protocol.c index ba2599f5f..b721c3d62 100644 --- a/src/libserver/protocol.c +++ b/src/libserver/protocol.c @@ -389,7 +389,7 @@ rspamd_protocol_handle_headers (struct rspamd_task *task, case 'i': case 'I': if (g_ascii_strncasecmp (headern, IP_ADDR_HEADER, hlen) == 0) { - if (!rspamd_parse_inet_address (&task->from_addr, hv->str)) { + if (!rspamd_parse_inet_address (&task->from_addr, hv->str, 0)) { msg_err_task ("bad ip header: '%V'", hv); return FALSE; } |