diff options
author | Mikhail Galanin <mgalanin@mimecast.com> | 2018-08-15 16:32:26 +0100 |
---|---|---|
committer | Mikhail Galanin <mgalanin@mimecast.com> | 2018-08-15 16:32:26 +0100 |
commit | f368a0a51e7073bdf244bf1a959fb5ccb0389b9b (patch) | |
tree | de0eee22af55c38148d6415951b1253f7b874f49 /src/lua/lua_dns.c | |
parent | b29e8792c6be01be944223a0eea7ba373b151327 (diff) | |
parent | 938a0dba32a7f1632c3e14b92d986384aff19d7a (diff) | |
download | rspamd-f368a0a51e7073bdf244bf1a959fb5ccb0389b9b.tar.gz rspamd-f368a0a51e7073bdf244bf1a959fb5ccb0389b9b.zip |
Merge branch 'master' into lua-coroutine-model
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 37a53a8b5..451f3f717 100644 --- a/src/lua/lua_dns.c +++ b/src/lua/lua_dns.c @@ -196,7 +196,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); @@ -206,20 +206,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); |