aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_ip.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-08-16 16:31:54 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-08-16 16:31:54 +0100
commit81ea34d045991acf2a701c41220588cdb8eddd68 (patch)
tree3ee0a7f81d4b80fed942a3aacc68cec2f9841a3d /src/lua/lua_ip.c
parent30298909543453ebe969878f1406ee76ad148494 (diff)
downloadrspamd-81ea34d045991acf2a701c41220588cdb8eddd68.tar.gz
rspamd-81ea34d045991acf2a701c41220588cdb8eddd68.zip
[Minor] Lua_ip: fix to_number
Diffstat (limited to 'src/lua/lua_ip.c')
-rw-r--r--src/lua/lua_ip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_ip.c b/src/lua/lua_ip.c
index 7f24f7712..3c3ef2d51 100644
--- a/src/lua/lua_ip.c
+++ b/src/lua/lua_ip.c
@@ -403,7 +403,7 @@ lua_ip_to_number (lua_State *L)
lua_pushinteger (L, ntohl (c));
}
- return max;
+ return max / sizeof (c);
}
else {
lua_pushnil (L);