Maat_table_callback_register中增加对表类型的检查。

This commit is contained in:
zhengchao
2015-10-19 18:00:29 +08:00
parent eabe806ee0
commit 90ba9322b1

View File

@@ -21,7 +21,7 @@
#include "rulescan.h" #include "rulescan.h"
#include "UniversalBoolMatch.h" #include "UniversalBoolMatch.h"
int MAAT_FRAME_VERSION_1_2_20150724=1; int MAAT_FRAME_VERSION_1_2_20151019
const char *maat_module="MAAT Frame"; const char *maat_module="MAAT Frame";
const char* CHARSET_STRING[]={"CHARSET_NONE","GBK","BIG5","UNICODE","UTF-8"}; const char* CHARSET_STRING[]={"CHARSET_NONE","GBK","BIG5","UNICODE","UTF-8"};
@@ -2592,6 +2592,10 @@ int Maat_table_callback_register(Maat_feather_t feather,short table_id,
{ {
return -1; return -1;
} }
if(p_table->table_type!=TABLE_TYPE_PLUGIN)
{
return -1;
}
idx=p_table->cb_info->cb_plug_cnt; idx=p_table->cb_info->cb_plug_cnt;
if(idx==MAX_PLUGING_NUM) if(idx==MAX_PLUGING_NUM)
{ {