aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/protocol.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-13 16:05:22 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-13 16:05:22 +0100
commit7bd798029766d9bb610cfb07478ddaf94717324d (patch)
tree96490fac43f2be2820b7be5a686ebe05852c9589 /src/libserver/protocol.c
parent9370ea45e1a9b745cec61cd0e90389ee37f4853a (diff)
downloadrspamd-7bd798029766d9bb610cfb07478ddaf94717324d.tar.gz
rspamd-7bd798029766d9bb610cfb07478ddaf94717324d.zip
Fix parsing of HTTP headers with IP addresses
Diffstat (limited to 'src/libserver/protocol.c')
-rw-r--r--src/libserver/protocol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/protocol.c b/src/libserver/protocol.c
index b721c3d62..a8a0c4785 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, 0)) {
+ if (!rspamd_parse_inet_address (&task->from_addr, hv->str, hv->len)) {
msg_err_task ("bad ip header: '%V'", hv);
return FALSE;
}