diff options
| author | fengweihao <[email protected]> | 2021-09-28 10:21:13 +0800 |
|---|---|---|
| committer | fengweihao <[email protected]> | 2021-09-28 10:21:13 +0800 |
| commit | 63ffd38156c4bdb61a621d4580e3df129c20e700 (patch) | |
| tree | f0f1e3abfc9549a3e67541f8373752baf2b7a457 | |
| parent | 72312b0283050fe647e4ee527226f3a9811694ca (diff) | |
bugfix: 上报命中策略时过滤policy_id=1的内置策略
| -rw-r--r-- | scan/src/policy_scan.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scan/src/policy_scan.cpp b/scan/src/policy_scan.cpp index 43062f5..94a8141 100644 --- a/scan/src/policy_scan.cpp +++ b/scan/src/policy_scan.cpp @@ -766,7 +766,8 @@ int http_hit_policy_list(enum verify_policy_type policy_type, size_t hit_cnt, cJ { for (i = 0; i < ctx->hit_cnt; i++) { - if(http_hit_policy_match(result_config, i, ctx->result[i].config_id)) + if(http_hit_policy_match(result_config, i, ctx->result[i].config_id) || + ctx->result[i].config_id == 1) { continue; } |
