From 8218a43678cce4233114c748b0cdf5819eed69a5 Mon Sep 17 00:00:00 2001 From: fengweihao Date: Wed, 7 Aug 2024 18:06:54 +0800 Subject: [PATCH] =?UTF-8?q?TSG-22095=20VerifyPolicy=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E5=85=B3=E4=BA=8EFQDN=20Entry=E5=88=86=E7=B1=BB=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E7=9A=84=E5=BC=BA=E5=88=B6=E5=88=A4=E6=96=AD=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platform/src/verify_matcher.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/platform/src/verify_matcher.cpp b/platform/src/verify_matcher.cpp index b4b61bd..f9e1f07 100644 --- a/platform/src/verify_matcher.cpp +++ b/platform/src/verify_matcher.cpp @@ -695,7 +695,7 @@ int get_statistics_option_type_str2idx(const char *statistics_option_type) int get_category_type_str2idx(const char *category) { size_t i = 0; - const char *category_name[] = {"unknown", "geoip", "country_code", "asn", "website_category", "internet_service", "ioc", "compliance_risk"}; + const char *category_name[] = {"unknown", "geoip", "country_code", "asn", "website_category", "internet_service", "security_threat", "compliance_risk"}; for (i = 0; i < sizeof(category_name) / sizeof(const char *); i++) { if (0 == strcasecmp(category, category_name[i])) @@ -1539,7 +1539,6 @@ int get_fqdn_category_id(struct request_query_obj *request, struct policy_scan_c size_t n_read=0, n_hit_result=0; int hit_path_cnt=0; int ret=0, hit_cnt_fqdn=0; - enum category_type category=CATEGORY_TYPE_UNKNOWN; struct library_entry_ctx *fqdn_entry_ctx[MAX_EX_DATA_LEN]={0}; if(!g_policy_rt->load_fqdn_cat) @@ -1560,11 +1559,6 @@ int get_fqdn_category_id(struct request_query_obj *request, struct policy_scan_c for(int tag_id=0; tag_idn_tag_ids; tag_id++) { - category = get_library_tag_category(fqdn_entry_ctx[i]->tag_id_array[tag_id], vsys_id); - if(category != CATEGORY_TYPE_WEBSITE_CATEGORY) - { - continue; - } fqdn_entry.table_id = request->table_id; fqdn_entry.tag[fqdn_entry.entry_num].entry_id = fqdn_entry_ctx[i]->entry_id; fqdn_entry.tag[fqdn_entry.entry_num].tag_id=fqdn_entry_ctx[i]->tag_id_array[tag_id];