diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-11-07 14:22:12 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-11-07 14:22:12 +0000 |
commit | 6a0b884f3d5c9ee32203ca033d179b4b7bf45f60 (patch) | |
tree | a77b1d4966bf21914e23e00557bc892fec3d5d11 /src/lua | |
parent | cd5656abb755d5070651b1594bc4b2f8acd345df (diff) | |
download | rspamd-6a0b884f3d5c9ee32203ca033d179b4b7bf45f60.tar.gz rspamd-6a0b884f3d5c9ee32203ca033d179b4b7bf45f60.zip |
Fix endiannes in lua_radix search.
Diffstat (limited to 'src/lua')
-rw-r--r-- | src/lua/lua_config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c index 43be4b988..9533c17d1 100644 --- a/src/lua/lua_config.c +++ b/src/lua/lua_config.c @@ -1294,7 +1294,7 @@ lua_radix_get_key (lua_State * L) guint32 key; if (radix) { - key = luaL_checkint (L, 2); + key = htonl (luaL_checkint (L, 2)); if (radix_find_compressed (radix, (guint8 *)&key, sizeof (key)) != RADIX_NO_VALUE) { |