diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-08-15 16:20:41 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-08-15 16:20:59 +0100 |
commit | 938a0dba32a7f1632c3e14b92d986384aff19d7a (patch) | |
tree | 32e64f23e9bbed4c9123fb19972406ed6349d1d1 /src/lua/lua_dns.c | |
parent | 46d32375ac0fe58156da513670ea7c9bccf0aed2 (diff) | |
download | rspamd-938a0dba32a7f1632c3e14b92d986384aff19d7a.tar.gz rspamd-938a0dba32a7f1632c3e14b92d986384aff19d7a.zip |
[Minor] Better Lua 5.3 compatibility
Diffstat (limited to 'src/lua/lua_dns.c')
-rw-r--r-- | src/lua/lua_dns.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lua/lua_dns.c b/src/lua/lua_dns.c index f6ba88f2e..389b9d4f1 100644 --- a/src/lua/lua_dns.c +++ b/src/lua/lua_dns.c @@ -190,7 +190,7 @@ lua_dns_callback (struct rdns_reply *reply, gpointer arg) lua_createtable (cd->L, 0, 2); rspamd_lua_table_set (cd->L, "name", elt->content.mx.name); lua_pushstring (cd->L, "priority"); - lua_pushnumber (cd->L, elt->content.mx.priority); + lua_pushinteger (cd->L, elt->content.mx.priority); lua_settable (cd->L, -3); lua_rawseti (cd->L, -2, ++i); @@ -200,20 +200,20 @@ lua_dns_callback (struct rdns_reply *reply, gpointer arg) rspamd_lua_table_set (cd->L, "ns", elt->content.soa.mname); rspamd_lua_table_set (cd->L, "contact", elt->content.soa.admin); lua_pushstring (cd->L, "serial"); - lua_pushnumber (cd->L, elt->content.soa.serial); + lua_pushinteger (cd->L, elt->content.soa.serial); lua_settable (cd->L, -3); lua_pushstring (cd->L, "refresh"); - lua_pushnumber (cd->L, elt->content.soa.refresh); + lua_pushinteger (cd->L, elt->content.soa.refresh); lua_settable (cd->L, -3); lua_pushstring (cd->L, "retry"); - lua_pushnumber (cd->L, elt->content.soa.retry); + lua_pushinteger (cd->L, elt->content.soa.retry); lua_settable (cd->L, -3); lua_pushstring (cd->L, "expiry"); - lua_pushnumber (cd->L, elt->content.soa.expire); + lua_pushinteger (cd->L, elt->content.soa.expire); lua_settable (cd->L, -3); /* Negative TTL */ lua_pushstring (cd->L, "nx"); - lua_pushnumber (cd->L, elt->content.soa.minimum); + lua_pushinteger (cd->L, elt->content.soa.minimum); lua_settable (cd->L, -3); lua_rawseti (cd->L, -2, ++i); |