Maat_table_callback_register中增加对表类型的检查。
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
#include "rulescan.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* 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;
|
||||
}
|
||||
if(p_table->table_type!=TABLE_TYPE_PLUGIN)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
idx=p_table->cb_info->cb_plug_cnt;
|
||||
if(idx==MAX_PLUGING_NUM)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user