diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-26 12:07:29 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-26 12:07:29 +0100 |
commit | 66d8b6e43447eeebe1ca1c2f79fa4b52173a1b6b (patch) | |
tree | 45dc9e90027450559bebecfe74c6e6b74d5d6524 /src/lua/lua_udp.c | |
parent | f648223e11b724cb485fabd8d344fec3b3e382c5 (diff) | |
download | rspamd-66d8b6e43447eeebe1ca1c2f79fa4b52173a1b6b.tar.gz rspamd-66d8b6e43447eeebe1ca1c2f79fa4b52173a1b6b.zip |
[Fix] Do not call implicit strlen to avoid issues
Diffstat (limited to 'src/lua/lua_udp.c')
-rw-r--r-- | src/lua/lua_udp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_udp.c b/src/lua/lua_udp.c index 94d27bf63..966ce9788 100644 --- a/src/lua/lua_udp.c +++ b/src/lua/lua_udp.c @@ -373,7 +373,7 @@ lua_udp_sendto (lua_State *L) { if (lua_type (L, -1) == LUA_TSTRING) { host = luaL_checkstring (L, -1); - if (rspamd_parse_inet_address (&addr, host, 0)) { + if (rspamd_parse_inet_address (&addr, host, strlen (host))) { if (port != 0) { rspamd_inet_address_set_port (addr, port); } |