在Maat_set_scan_status中增加scanner判空,避免段错误。

This commit is contained in:
zhengchao
2016-12-19 11:24:27 +08:00
parent de9dc909d8
commit e863b99ee4

View File

@@ -1511,6 +1511,10 @@ int Maat_set_scan_status(Maat_feather_t feather,scan_status_t* mid,enum MAAT_SCA
struct _Maat_feather_t* _feather=(_Maat_feather_t*)feather; struct _Maat_feather_t* _feather=(_Maat_feather_t*)feather;
struct _OUTER_scan_status_t* _mid=NULL; struct _OUTER_scan_status_t* _mid=NULL;
int map_ret=-1; int map_ret=-1;
if(_feather->scanner==NULL)
{
return 0;
}
_mid=grab_mid(mid,_feather, 0, 0); _mid=grab_mid(mid,_feather, 0, 0);
if(_mid==NULL) if(_mid==NULL)
{ {