From e863b99ee400024355cabea09d6912e2cfae40ab Mon Sep 17 00:00:00 2001 From: zhengchao Date: Mon, 19 Dec 2016 11:24:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8Maat=5Fset=5Fscan=5Fstatus=E4=B8=AD?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0scanner=E5=88=A4=E7=A9=BA=EF=BC=8C=E9=81=BF?= =?UTF-8?q?=E5=85=8D=E6=AE=B5=E9=94=99=E8=AF=AF=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/entry/Maat_api.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/entry/Maat_api.cpp b/src/entry/Maat_api.cpp index a2da470..5cbb2be 100644 --- a/src/entry/Maat_api.cpp +++ b/src/entry/Maat_api.cpp @@ -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 _OUTER_scan_status_t* _mid=NULL; int map_ret=-1; + if(_feather->scanner==NULL) + { + return 0; + } _mid=grab_mid(mid,_feather, 0, 0); if(_mid==NULL) {