diff options
| author | liuxueli <[email protected]> | 2020-08-10 17:41:33 +0800 |
|---|---|---|
| committer | liuxueli <[email protected]> | 2020-08-10 17:41:33 +0800 |
| commit | 173b37a89dc7c3ed502e9c507aedb07dcadaaaa5 (patch) | |
| tree | 1e778e6e91deeb62bbd961e5290c19acbd4df66b | |
| parent | 08d586185a1dd3a48e9ee2c4bd6dba7d123d4ecc (diff) | |
扫描ip_plugin表时,未对ip_matcher判空,导致ip_matcher报错写日志v2.9.5
| -rw-r--r-- | src/entry/Maat_table_runtime.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/entry/Maat_table_runtime.cpp b/src/entry/Maat_table_runtime.cpp index c15531c..7e325af 100644 --- a/src/entry/Maat_table_runtime.cpp +++ b/src/entry/Maat_table_runtime.cpp @@ -526,6 +526,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++) { |
