Kaynağa Gözat

Merge pull request #762 from k-mds/patch-1

Fix Lua websocket stack overflow error
bel2125 6 yıl önce
ebeveyn
işleme
2ddb1309db
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. 1 0
      src/mod_lua.inl

+ 1 - 0
src/mod_lua.inl

@@ -1778,6 +1778,7 @@ lua_action(struct laction_arg *arg)
 	lua_pushlightuserdata(arg->state, (void *)&lua_regkey_ctx);
 	lua_gettable(arg->state, LUA_REGISTRYINDEX);
 	ctx = (struct mg_context *)lua_touserdata(arg->state, -1);
+	lua_pop(arg->state, 1);
 
 	err = luaL_loadstring(arg->state, arg->txt);
 	if (err != 0) {