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/lua/lua_ip.c | |
parent | 1ccfaf0523b69bda6f34e33faaf2dc9f321abfa9 (diff) | |
download | rspamd-9370ea45e1a9b745cec61cd0e90389ee37f4853a.tar.gz rspamd-9370ea45e1a9b745cec61cd0e90389ee37f4853a.zip |
Fix parsing of fixed length IP addresses.
Diffstat (limited to 'src/lua/lua_ip.c')
-rw-r--r-- | src/lua/lua_ip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_ip.c b/src/lua/lua_ip.c index 43f9892d9..1f4ae03f6 100644 --- a/src/lua/lua_ip.c +++ b/src/lua/lua_ip.c @@ -359,7 +359,7 @@ lua_ip_from_string (lua_State *L) ip_str = luaL_checkstring (L, 1); if (ip_str) { ip = lua_ip_new (L, NULL); - rspamd_parse_inet_address (&ip->addr, ip_str); + rspamd_parse_inet_address (&ip->addr, ip_str, 0); } else { lua_pushnil (L); @@ -511,7 +511,7 @@ rspamd_lua_ip_push_fromstring (lua_State *L, const gchar *ip_str) } else { ip = g_slice_alloc0 (sizeof (struct rspamd_lua_ip)); - rspamd_parse_inet_address (&ip->addr, ip_str); + rspamd_parse_inet_address (&ip->addr, ip_str, 0); pip = lua_newuserdata (L, sizeof (struct rspamd_lua_ip *)); rspamd_lua_setclass (L, "rspamd{ip}", -1); |