diff options
| author | liuxueli <[email protected]> | 2023-03-27 11:28:32 +0800 |
|---|---|---|
| committer | liuxueli <[email protected]> | 2023-03-27 11:28:32 +0800 |
| commit | dda96c9fb41aa7c3c9dd4bf617cc5eaca62a6dd4 (patch) | |
| tree | 70addd6cd5707e7e77f4a4362d21aadf002096ad /src/tsg_rule.cpp | |
| parent | d211aa1811bb8285a717498ac0275c10af4ae066 (diff) | |
TSG-14421: 策略失效后获取user_region为空,返回值为1导致策略执行方向不正确v5.8.16feature-enforce-direction
Diffstat (limited to 'src/tsg_rule.cpp')
| -rw-r--r-- | src/tsg_rule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tsg_rule.cpp b/src/tsg_rule.cpp index 06b835b..a28084f 100644 --- a/src/tsg_rule.cpp +++ b/src/tsg_rule.cpp @@ -3496,7 +3496,7 @@ int tsg_is_do_deny_action_by_enforce_direction(const struct streaminfo *a_stream struct compile_user_region *user_region=(struct compile_user_region *)Maat_rule_get_ex_data(g_tsg_maat_feather, p_result, g_tsg_para.table_id[TABLE_SECURITY_COMPILE]); if(user_region==NULL) { - return 1; + return 0; } if((user_region->method_type==TSG_METHOD_TYPE_DROP || user_region->method_type==TSG_METHOD_TYPE_RATE_LIMIT) && user_region->deny!=NULL) |
