summaryrefslogtreecommitdiff
path: root/plugin/business/tsg-http/src/http_lua.cpp
diff options
context:
space:
mode:
authorfengweihao <[email protected]>2023-11-16 15:20:17 +0800
committerfengweihao <[email protected]>2023-11-16 15:20:17 +0800
commitf4e719a78b2498e5a78305f30d3b2bcd5db122ef (patch)
treec8bd62127d5779bd2ab9c2ca86597d9271c79afe /plugin/business/tsg-http/src/http_lua.cpp
parentc9623b5ccdfe915eab4cb8ec8223ffb1bf245f5e (diff)
TSG-17693 修复错误的判断,导致lua脚本执行失败v4.8.44-20231116
Diffstat (limited to 'plugin/business/tsg-http/src/http_lua.cpp')
-rw-r--r--plugin/business/tsg-http/src/http_lua.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}