summaryrefslogtreecommitdiff
path: root/platform/src/verify_matcher.cpp
diff options
context:
space:
mode:
authorfengweihao <[email protected]>2024-05-14 10:45:03 +0800
committerfengweihao <[email protected]>2024-05-14 10:45:03 +0800
commit0b47f4c561245843119e614e27db1a78fb780006 (patch)
treed3d211056e8065ec7f0cfd08e22da6081c601d21 /platform/src/verify_matcher.cpp
parente3ce9f2533a308c024ec06a21110409ada44e53f (diff)
TSG-21225 修复当External仅设置ASN时,无法通过External IP匹配到策略v4.0.20-20240514
Diffstat (limited to 'platform/src/verify_matcher.cpp')
-rw-r--r--platform/src/verify_matcher.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/src/verify_matcher.cpp b/platform/src/verify_matcher.cpp
index eb5a608..0046376 100644
--- a/platform/src/verify_matcher.cpp
+++ b/platform/src/verify_matcher.cpp
@@ -1550,7 +1550,7 @@ int ip_asn_scan(struct policy_scan_ctx * ctx, int vsys_id, int table_id, struct
}
else
{
- table_id = (table_id==TSG_OBJ_INTERNAL_ADDR)?TSG_OBJ_INTERNAL_ASN:TSG_OBJ_EXTERNAL_ADDR;
+ table_id = (table_id==TSG_OBJ_INTERNAL_ADDR)?TSG_OBJ_INTERNAL_ASN:TSG_OBJ_EXTERNAL_ASN;
}
scan_ret=maat_scan_group(g_policy_rt->feather[vsys_id], g_policy_rt->scan_table_id[table_id], &hit_group, 1,
ctx->result+hit_cnt+hit_cnt_ip, MAX_SCAN_RESULT-hit_cnt-hit_cnt_ip, &n_hit_result, ctx->scan_mid);