commit 81ea34d: [Minor] Lua_ip: fix to_number
Vsevolod Stakhov
vsevolod at highsecure.ru
Fri Aug 16 15:56:03 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-08-16 16:31:54 +0100
URL: https://github.com/rspamd/rspamd/commit/81ea34d045991acf2a701c41220588cdb8eddd68
[Minor] Lua_ip: fix to_number
---
src/lua/lua_ip.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
More information about the Commits
mailing list