diff --git a/plugin/business/tsg-http/src/http_lua.cpp b/plugin/business/tsg-http/src/http_lua.cpp index 5894e22..78b93ba 100644 --- a/plugin/business/tsg-http/src/http_lua.cpp +++ b/plugin/business/tsg-http/src/http_lua.cpp @@ -834,7 +834,7 @@ size_t execute_lua_script_rule(struct tsg_lua_script *lua_script, int profile_id return ret; } - if(*escript == NULL) + if(escript[thread_id] == NULL) { escript[thread_id]=http_lua_map_cache_script(lua_script->http_lua_handle[thread_id], profile_msg, msg_len, timeout); }