]> source.dussan.org Git - rspamd.git/commitdiff
Fix typecast.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 15 Feb 2015 20:01:36 +0000 (20:01 +0000)
committerAndrew Lewis <nerf@judo.za.org>
Sun, 15 Feb 2015 20:28:27 +0000 (22:28 +0200)
src/lua/lua_config.c

index 0447cbf402aea98c95fef7784f12c4b1a0353f6a..b461ca5ab59e01d28614962f42f4dbc96f778c30 100644 (file)
@@ -1317,7 +1317,7 @@ lua_radix_get_key (lua_State * L)
                else if (lua_type (L, 2) == LUA_TUSERDATA) {
                        ud = luaL_checkudata (L, 2, "rspamd{ip}");
                        if (ud != NULL) {
-                               addr = (struct rspamd_lua_ip *)ud;
+                               addr = *((struct rspamd_lua_ip **)ud);
                                if (!addr->is_valid) {
                                        msg_err ("rspamd{ip} is not valid");
                                        addr = NULL;