扫描ip_plugin表时,未对ip_matcher判空,导致ip_matcher报错写日志。

This commit is contained in:
zhengchao
2020-07-27 20:55:27 +08:00
parent 608a50535c
commit 9eac53c0ab

View File

@@ -527,6 +527,10 @@ int Maat_table_runtime_ip_plugin_get_N_ex_data(struct Maat_table_runtime* table_
{
struct scan_result results[size];
int n_result=0, i=0;
if(!table_rt->ip_plugin.ip_matcher)
{
return 0;
}
n_result=ip_matcher_match(table_rt->ip_plugin.ip_matcher, (struct ip_data*)ip, results, size);
for(i=0; i<n_result; i++)
{