From: Vsevolod Stakhov Date: Fri, 7 Nov 2014 14:22:12 +0000 (+0000) Subject: Fix endiannes in lua_radix search. X-Git-Tag: 0.7.4~10 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6a0b884f3d5c9ee32203ca033d179b4b7bf45f60;p=rspamd.git Fix endiannes in lua_radix search. --- 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) {