From 9eac53c0abbe51648b1918ac84a37e97bcfc6b70 Mon Sep 17 00:00:00 2001 From: zhengchao Date: Mon, 27 Jul 2020 20:55:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=AB=E6=8F=8Fip=5Fplugin=E8=A1=A8=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E6=9C=AA=E5=AF=B9ip=5Fmatcher=E5=88=A4=E7=A9=BA?= =?UTF-8?q?=EF=BC=8C=E5=AF=BC=E8=87=B4ip=5Fmatcher=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E5=86=99=E6=97=A5=E5=BF=97=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/entry/Maat_table_runtime.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/entry/Maat_table_runtime.cpp b/src/entry/Maat_table_runtime.cpp index 01280e9..3c8462b 100644 --- a/src/entry/Maat_table_runtime.cpp +++ b/src/entry/Maat_table_runtime.cpp @@ -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