mirror of
https://dev.iopsys.eu/bbf/icwmp.git
synced 2025-12-10 07:44:41 +01:00
Fail GetRPCMethods: advance next RPC ACS method after skipping GetRPCMethods
This commit is contained in:
parent
643af329ff
commit
90bf50ec94
1 changed files with 14 additions and 2 deletions
16
cwmp.c
16
cwmp.c
|
|
@ -180,8 +180,14 @@ int cwmp_schedule_rpc(struct cwmp *cwmp, struct session *session)
|
||||||
|
|
||||||
CWMP_LOG(INFO, "Send the %s RPC message to the ACS", rpc_acs_methods[rpc_acs->type].name);
|
CWMP_LOG(INFO, "Send the %s RPC message to the ACS", rpc_acs_methods[rpc_acs->type].name);
|
||||||
if (xml_send_message(cwmp, session, rpc_acs)) {
|
if (xml_send_message(cwmp, session, rpc_acs)) {
|
||||||
if (rpc_acs->type == RPC_ACS_GET_RPC_METHODS)
|
if (rpc_acs->type == RPC_ACS_GET_RPC_METHODS) {
|
||||||
|
CWMP_LOG(ERROR, "Get the %sResponse failed message from the ACS", rpc_acs_methods[rpc_acs->type].name);
|
||||||
|
ilist = ilist->prev;
|
||||||
|
cwmp_session_rpc_destructor(rpc_acs);
|
||||||
|
MXML_DELETE(session->tree_in);
|
||||||
|
MXML_DELETE(session->tree_out);
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
goto retry;
|
goto retry;
|
||||||
}
|
}
|
||||||
|
|
@ -189,8 +195,14 @@ int cwmp_schedule_rpc(struct cwmp *cwmp, struct session *session)
|
||||||
CWMP_LOG(INFO, "Get the %sResponse message from the ACS", rpc_acs_methods[rpc_acs->type].name);
|
CWMP_LOG(INFO, "Get the %sResponse message from the ACS", rpc_acs_methods[rpc_acs->type].name);
|
||||||
if (rpc_acs_methods[rpc_acs->type].parse_response || thread_end)
|
if (rpc_acs_methods[rpc_acs->type].parse_response || thread_end)
|
||||||
if (rpc_acs_methods[rpc_acs->type].parse_response(cwmp, session, rpc_acs)) {
|
if (rpc_acs_methods[rpc_acs->type].parse_response(cwmp, session, rpc_acs)) {
|
||||||
if (rpc_acs->type == RPC_ACS_GET_RPC_METHODS)
|
if (rpc_acs->type == RPC_ACS_GET_RPC_METHODS) {
|
||||||
|
CWMP_LOG(ERROR, "Get the %sResponse failed message from the ACS", rpc_acs_methods[rpc_acs->type].name);
|
||||||
|
ilist = ilist->prev;
|
||||||
|
cwmp_session_rpc_destructor(rpc_acs);
|
||||||
|
MXML_DELETE(session->tree_in);
|
||||||
|
MXML_DELETE(session->tree_out);
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
goto retry;
|
goto retry;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue