From 6a0b884f3d5c9ee32203ca033d179b4b7bf45f60 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 7 Nov 2014 14:22:12 +0000 Subject: [PATCH] Fix endiannes in lua_radix search. --- src/lua/lua_config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.5