catch error, if put_msg finds no handler

FossilOrigin-Name: bcada13e86977fb8e3502d5d580ffe023b9eb350a0a9953f4641634e026c702c
This commit is contained in:
7u83@mail.ru 2018-03-29 07:35:14 +00:00
parent 6780eef364
commit b1c406dcc1
3 changed files with 9 additions and 4 deletions

View File

@ -5,8 +5,8 @@
<Project Name="mod_cipwap" Path="mod_cipwap.project" Active="No"/>
<Project Name="mod_capwap" Path="mod_capwap.project" Active="No"/>
<Project Name="mod_cisco" Path="mod_cisco.project" Active="No"/>
<Project Name="libcw" Path="libcw.project" Active="No"/>
<Project Name="mod_capwap80211" Path="mod_capwap80211.project" Active="Yes"/>
<Project Name="libcw" Path="libcw.project" Active="Yes"/>
<Project Name="mod_capwap80211" Path="mod_capwap80211.project" Active="No"/>
<Project Name="mod_fortinet" Path="mod_fortinet.project" Active="No"/>
<BuildMatrix>
<WorkspaceConfiguration Name="Debug" Selected="yes">

View File

@ -75,6 +75,12 @@ int cw_put_msg(struct conn *conn, uint8_t * rawout)
data = mlistelem_dataptr(elem);
handler = cw_msgset_get_elemhandler(conn->msgset,data->proto,data->vendor,data->id);
/* printf("Elem: %d %d %d %s\n", data->proto, data->vendor, data->id, handler->name);*/
if (handler==NULL){
cw_log(LOG_ERR,"Can't put message element %d %d %, no handler defined.",
data->proto,data->vendor,data->id);
continue;
}
if (handler->put == NULL){
if (data->mand){

View File

@ -27,7 +27,6 @@ wtp-descriptor/bootloader/version:Bstr16:.x171312
wtp-descriptor/max-radios:Byte:2
radio/0/wtp-radio-information:Dword:01
radio/1/wtp-radio-information:Dword:15
radio/2/wtp-radio-information:Dword:03
radio/1/wtp-radio-information:Dword:02
wtp-name:Bstr16:WFAT01