summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfengweihao <[email protected]>2024-03-07 15:21:08 +0800
committer冯伟浩 <[email protected]>2024-03-08 07:29:15 +0000
commit96cdb7228d1173e14743aa3ba9bcc93106c76558 (patch)
tree7c9bcc8ef286474a6db3fd9a266f97880630e639
parent0946effa1bcb9b8b6daccfc615ef0d0adc59e24d (diff)
TSG-19820 Protocol Field中Request Body/Response Body选择非运算时,无法命中策略
-rw-r--r--plugin/business/tsg-http/src/tsg_http.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugin/business/tsg-http/src/tsg_http.cpp b/plugin/business/tsg-http/src/tsg_http.cpp
index 5f2481a..5e6f96b 100644
--- a/plugin/business/tsg-http/src/tsg_http.cpp
+++ b/plugin/business/tsg-http/src/tsg_http.cpp
@@ -2814,6 +2814,8 @@ enum proxy_action http_scan(const struct tfe_http_session * session, enum tfe_ht
if ((events & EV_HTTP_REQ_BODY_END) | (events & EV_HTTP_RESP_BODY_END))
{
+ table_id = events & EV_HTTP_REQ_BODY_END ? g_proxy_rt->scan_table_id[PXY_CTRL_HTTP_REQ_BODY] : g_proxy_rt
+ ->scan_table_id[PXY_CTRL_HTTP_RES_BODY];
scan_ret = maat_scan_not_logic(g_proxy_rt->feather, table_id, result + hit_cnt, MAX_SCAN_RESULT - hit_cnt,
&n_hit_result, ctx->scan_mid);
if (scan_ret == MAAT_SCAN_HIT)