diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-13 16:05:22 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-13 16:05:22 +0100 |
commit | 7bd798029766d9bb610cfb07478ddaf94717324d (patch) | |
tree | 96490fac43f2be2820b7be5a686ebe05852c9589 /src/lua/lua_http.c | |
parent | 9370ea45e1a9b745cec61cd0e90389ee37f4853a (diff) | |
download | rspamd-7bd798029766d9bb610cfb07478ddaf94717324d.tar.gz rspamd-7bd798029766d9bb610cfb07478ddaf94717324d.zip |
Fix parsing of HTTP headers with IP addresses
Diffstat (limited to 'src/lua/lua_http.c')
-rw-r--r-- | src/lua/lua_http.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_http.c b/src/lua/lua_http.c index 23adb6914..7390000e0 100644 --- a/src/lua/lua_http.c +++ b/src/lua/lua_http.c @@ -449,7 +449,7 @@ lua_http_request (lua_State *L) rspamd_session_watcher_push (session); } - if (rspamd_parse_inet_address (&cbd->addr, msg->host->str, 0)) { + if (rspamd_parse_inet_address (&cbd->addr, msg->host->str, msg->host->len)) { /* Host is numeric IP, no need to resolve */ if (!lua_http_make_connection (cbd)) { lua_http_maybe_free (cbd); |